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. For information about how to change to the VMS e-mail facility, see EMAILSYS= System Option: OpenVMS.
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 open the Send Mail dialog box, select File Send Mail.
To send e-mail, complete the following steps as needed:
Enter the addresses of the e-mail recipients in the To, Cc, and Bcc fields. Separate multiple addresses with either blank spaces or commas.
Enter the name of the file that you want to send in the Attach field. Separate multiple filenames with blank spaces. You can also use Browse to select a file.
Type your message in the message area or edit the contents grabbed from the active SAS text window.
Note: The Bcc and Attach fields are valid only with SMTP. The VMS e-mail facility does not support them. If you use the VMS e-mail facility, then you cannot attach images to your e-mails. For more information about attaching images, see Sending the Contents of a Non-Text Window.
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 in 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 opening 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 in 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.
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: OpenVMS.
If you do not want to attach this image to your e-mail, clear the contents of the Attach field.
Note: The VMS e-mail facility does not support attachments. You can send attachments only when using SMTP.
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, select Tools Options Preferences. On the DMS tab in the Image type for Email attachments box, select one of the following image file types:
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.