SAS 9.1 Companion For Unix Enivronments

Default E-Mail Protocol in SAS

By default, SAS uses SMTP (Simple Mail Transfer Protocol) to send e-mail from within your SAS session. You can use the EMAILSYS system option to specify which script or protocol you want to use for sending electronic mail. See "EMAILSYS System Option" on page 326 for more information.

For more information about the SMTP e-mail interface, see SAS Language Reference: Concepts .

What is the Send Mail Dialog Box?

The Send Mail dialog box (Display 2.11 on page 48) enables you to send e-mail without leaving your current SAS session. To invoke the dialog box, issue the DLGSMAIL command or select File – Send Mail

Display 2.11: Send Mail Dialog Box

Sending E-Mail using the Send Mail Dialog Box

To send e-mail, complete the following steps as needed:

To cancel a message, click Cancel .

Sending the Contents of a Text Window

You can e-mail the contents of an active SAS text window (such as the Program Editor or the Log) by using the Send Mail dialog box. To open the Send Mail dialog box, select File – Send Mail SAS automatically copies the contents of the active SAS window and includes the text in the body of your e-mail. You can change or add to the e-mail message in the Send Mail dialog box.

If you do not want to include the contents of the active SAS editor window in your message, select Edit – Clear All before invoking the Send Mail dialog box.

Sending the Contents of a Non-Text Window

To send the contents of a non-text window (such as a graph generated by SAS/ GRAPH or an image from your PROC REPORT output), select File – Send Mail from the active SAS window. SAS automatically copies the image data to a temporary file and enters that filename into the Attach field of the Send Mail dialog box. To change the default file type for this temporary file, see "Changing the Default File Type" on page 49.

SAS only copies the portion of the image that is visible in the active window, along with the window frame and title. This behavior is similar to using the DLGSCRDUMP command. For more information, see "DLGSCRDUMP Command" on page 208.

If you do not want to attach this image to your e-mail, clear the contents of the Attach field.

Note  

Some external scripts do not support sending e-mail attachments.

Changing the Default File Type

You can change the default file type for the temporary file that SAS creates using the Preferences dialog box. To open the Preferences dialog box, select Tools – Options – Preferences On the DMS tab in the Image type for Email attachments box, select one of the following file types:

Категории