Previous Page | Next Page

The SMTP E-Mail Interface

Sending E-Mail through SMTP

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.

  1. 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, userid. If unsuccessful, then the SAS SMTP e-mail interface authenticates by using the full e-mail address--for example, userid@domain.com.

  2. 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, userid. 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.

  3. If neither the FROM=option nor the EMAILID system option is specified, the SAS SMTP e-mail interface will look up your user ID and authenticate it.

For more information about sending e-mail from SAS, refer to the SAS documentation for your operating environment.

Previous Page | Next Page | Top of Page