Previous Page | Next Page

Working in the SAS Windowing Environment

Sending Mail from within Your SAS Session in UNIX Environments


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: UNIX 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 enables you to send e-mail without leaving your current SAS session. To invoke the dialog box, issue the DLGSMAIL command or select File [arrow] Send Mail.

Send Mail Dialog Box

[Send Mail Dialog Box]


Send E-mail by Using the Send Mail Dialog Box

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

  1. Enter the IDs of the e-mail recipients in the To , Cc , and Bcc fields. Separate multiple addresses with either spaces or commas.

  2. Edit the entry in the Subject field as needed.

  3. Enter the name of the file that you want to send in the Attach field. Separate multiple filenames with spaces. You can also use Browse to select a file.

    Note:   Some external scripts do not support sending e-mail attachments.  [cautionend]

  4. Type your message in the message area or edit the contents grabbed from the active SAS text window.

  5. Click Send.

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 [arrow] 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 window in your message, select Edit [arrow] 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 [arrow] 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 Change the Default File Type.

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: UNIX.

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.  [cautionend]


Change the Default File Type

You can change the default file type for the temporary file that SAS creates by using the Preferences dialog box. To open the Preferences dialog box, do the following:

  1. Select Tools [arrow] Options [arrow] Preferences.

  2. On the DMS tab in the Image type for Email attachments box, select one of the following file types:

    • Portable Network Graphics (.png)

    • Graphics Interchange Format (.gif)

    • Tagged Image File Format (.tif)

Previous Page | Next Page | Top of Page