Working in the SAS Windowing Environment |
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 Send Mail.
Send E-mail by Using the Send Mail Dialog Box |
To send e-mail, complete the following steps as needed:
Enter the IDs of the e-mail recipients in the To , Cc , and Bcc fields. Separate multiple addresses with either spaces or commas.
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.
Type your message in the message area or edit the contents grabbed from the active SAS text window.
Click Send.
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 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 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.
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:
Select Tools Options Preferences.
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)
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.