Chapter Contents

Previous

Next
Base SAS Software: General Features

Sending E-mail from SAS Using the SMTP Interface

You can now use the FILENAME, EMAIL (SMTP) Access Method to send electronic mail programmatically from SAS in all operating environments in which SAS runs. In addition, you can change encoding for processing the message as well as attachments. To send e-mail to an SMTP (Simple Mail Transfer Protocol) server, you first use the EMAILSYS system option to specify the SMTP e-mail interface. Next, use the FILENAME statement to specify the EMAIL device type, and then submit SAS statements in a DATA step or in SCL code. For example, you can use the logic of a DATA step to subset e-mail distribution based on a large data set of e-mail addresses. You can also direct output through e-mail based on the results of processing.


Chapter Contents

Previous

Next

Top of Page

Terms of Use & Legal Information | Privacy Statement
Copyright © 2001 SAS Institute Inc. All Rights Reserved.