You
can send electronic mail programmatically from SAS using the SMTP
(Simple Mail Transfer Protocol) e-mail interface. SMTP is available
for all operating environments in which SAS runs. To send SMTP e-mail
with SAS e-mail support, you must have an intranet or Internet connection
that supports SMTP.
Some SMTP servers require
just the user identification as the login ID while others require
the full e-mail address. The SAS SMTP e-mail interface authenticates
the user identification in the following order.
-
If the FROM= option
is specified on the FILENAME, EMAIL Access Method statement, the SAS
SMTP e-mail interface authenticates by using the user identification
(for example, user ID). If unsuccessful, then the SAS SMTP e-mail
interface authenticates by using the full e-mail address (for example,
userid@domain.com).
-
If the FROM=option is
not specified on the FILENAME, EMAIL Access Method, the SAS SMTP e-mail
interface checks the EMAILID system option and authenticates by using
the user identification (for example, user ID). If unsuccessful, then
the SAS SMTP e-mail interface checks the EMAILID system option and
authenticates by using the full e-mail address (for example, userid@domain.com).
-
If neither the FROM=option
nor the EMAILID system option is specified, the SAS SMTP e-mail interface
looks up your user ID and authenticates it.
For more information
about sending e-mail from SAS, refer to the SAS documentation for
your operating environment.