4D Internet Commands v14SMTP_Date |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D Internet Commands v14
SMTP_Date
|
SMTP_Date ( smtp_ID ; msgDate ; msgTime ; timeZone ; offset {; deleteOption} ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
smtp_ID | Longint |
![]() |
Message reference | |||||
msgDate | Date |
![]() |
Date this message was created | |||||
msgTime | Time |
![]() |
Time this message was created | |||||
timeZone | Integer |
![]() |
Location code | |||||
offset | Integer |
![]() |
Dependent on value in timeZone parameter | |||||
deleteOption | Integer |
![]() |
0 = Add/Replace, 1 = Delete | |||||
Function result | Integer |
![]() |
Error Code | |||||
Given a date, a time, and a geographical location of the mail creator, the SMTP_Date command will build the date header for the message specified by the smtp_ID value. The date that is passed to the command should be the date and time for the current location of the machine sending the message. Since the parameters below must follow a specific format, the mail server on the receiving end of the message can interpret the date and time based on the date, time, time zone, and offset passed to it. It can then convert the sender's date and time to a local-time equivalent.
Note: If a mail message is composed without a Date header, the SMTP server will add one with its current date & time settings. All SMTP mail messages contain a date header, either added by the client application or the SMTP server.
smtp_ID is the long integer reference to the mail message created with the SMTP_New command.
msgDate is a 4D date which contains the date that this message was created.
msgTime is a time which contains the time this message was created.
timeZone identifies the time zone of the sender. This field accepts a value between zero and 6 based on the tables below.
offset - The value of this parameter is dependent upon the code set in the timeZone parameter. See the descriptions above or the table below to find the correct value to set for this parameter.
Code | Time Zone | Offset Parameter |
0 | +/- offset from UT | Offset is in +/- Hours |
1 | +/- offset from UT | Offset not used, offset is supplied by Mac's PRAM |
2 | EST - EDT | (0 = EST, 1 = EDT) |
3 | CST - CDT | (0 = CST, 1 = CDT) |
4 | MST - MDT | (0 = MST, 1 = MDT) |
5 | PST - PDT | (0 = PST, 1 = PDT) |
6 | Military Time | See Table Below |
Offset Values | Military Time Codes |
0 | Z |
-1 thru -9 | A thru I |
-10 thru -12 | K thru M |
1 thru 12 | N thru Y |
Definitions of Abbreviations | |
UT | Universal Time |
EST | Eastern Standard Time |
EDT | Eastern Daylight Time |
CST | Central Standard Time |
CDT | Central Daylight Time |
MST | Mountain Standard Time |
MDT | Mountain Daylight Time |
PST | Pacific Standard Time |
PDT | Pacific Daylight Time |
deleteOption - A value of zero will add the date header with the given parameters, or replace a previously added set of values. A value of 1 causes any previous definition of this field to be removed. Any values in the other parameters are ignored. deleteOption is an optional parameter which will default to zero if not otherwise specified.
Product: 4D Internet Commands
Theme: IC Send Mail
Number:
88987
Created: 4D Internet Commands 6.5
4D Internet Commands ( 4D Internet Commands v11.4)
4D Internet Commands ( 4D v13.2)
4D Internet Commands ( 4D Internet Commands v12.1)
4D Internet Commands ( 4D Internet Commands v14 R2)
4D Internet Commands ( 4D Internet Commands v14)
4D Internet Commands ( 4D Internet Commands v14 R3)
4D Internet Commands ( 4D Internet Commands v14 R4)