EMAILUTCOFFSET= System Option

For e-mail that is sent using the FILENAME statement EMAIL (SMTP) access method, specifies a UTC offset that is used in the Date header field of the e-mail message.
Valid in: Configuration file, SAS invocation, OPTIONS statement, SAS System Options Window
Category: Communications: E-mail
PROC OPTIONS GROUP= EMAIL
Note: This option can be restricted by a site administrator. For more information, see Restricted Options.

Syntax

EMAILUTCOFFSET="+hhmm | "-hhmm

Syntax Description

"+hhmm" | "-hhmm"
specifies the number of hours and minutes that are used as the UTC offset in the Date header field of an e-mail. Use the UTC offset to establish the local time.
Requirement:The value of the EMAILUTCOFFSET= system option must be enclosed in double or single quotation marks.

Details

If your computer time setting is a local time, or if your computer time setting does not account for Daylight Saving Time, you can use the EMAILUTCOFFSET= system option to set a UTC offset in the Date header field of an SMTP e-mail. If the Date header field contains a UTC offset, the value specified by the EMAILUTCOFFSET= system option replaces that UTC offset.

Example

This example uses the date of January 1, 2011, one hour, one minute, and one second after midnight:
OPTIONS Statement
Date: Header
options emailutcoffset="+0930";
Date: Sat, 01 Jan2011 01:01:01 +0930
options emailutcoffset="-0600";
Date Sat, 01 Jan2011 01:01:01 -0600

See Also

The SMTP E-Mail Interface in SAS Language Reference: Concepts
Statements: