DATA Step, Macro, Functions and more

SAS and outlook

Reply
Occasional Contributor
Posts: 18

SAS and outlook

Can SAS send an email when a program is complete or randomly call outlook do such a thing?
SAS Super FREQ
Posts: 8,868

Re: SAS and outlook

Posted in reply to Chiefsfan4ever
Hi:
How you send email using SAS depends on your operating system. If Outlook is your configured mail service, then you can send email from SAS using Outlook.

A search of previous forum postings may help you figure out how to do emails with SAS:
http://support.sas.com/forums/thread.jspa?messageID=4432ᅐ
http://support.sas.com/forums/thread.jspa?messageID=6780᩼
http://support.sas.com/forums/thread.jspa?messageID=12771㇣

In order to control WHEN the email is sent, you might have to investigate using the SAS Macro facility to conditionally send the email when a program is complete. (If you don't want to send it automatically.)

cynthia
Occasional Contributor
Posts: 18

Re: SAS and outlook

Posted in reply to Cynthia_sas
Thanks Cynthia. Message was edited by: Chiefsfan4ever
Occasional Contributor
Posts: 18

Re: SAS and outlook

Posted in reply to Chiefsfan4ever
Am I able to keep the signature that I have already set up on my outlook in these emails? It seems to just disregard them. Also how do I change the font in the email?
SAS Super FREQ
Posts: 8,868

Re: SAS and outlook

Posted in reply to Chiefsfan4ever
Hi:
I don't really know how SAS communicates with Outlook. I suspect that you do NOT have control over "outlook-y" things like signature, fonts, etc, etc. When I send a mail using the "simple" method, it gets sent from my computer as "plain text" -- which means no fonts, etc. This happens, even though I have my Outlook default set to HTML.

If I create the email -inside- Outlook, I get my signature when I start a new mail (if I have the Tools--> Options set to insert my signature.) But, if I create the mail with SAS, then my signature is not used.

The SAS Companion for your operating system may have more information. Otherwise, you may want to work with Tech Support. (And, keep in mind that it's possible that you can ONLY send the body of the email as plain text by default because of some configuration on your system. Your mail administrator may have done something to the mail server to prevent programs from sending HTML or XML messages.)

cynthia
N/A
Posts: 0

Re: SAS and outlook

Posted in reply to Chiefsfan4ever
I suspect that the SAS email is completely independent of Outlook (or any other email system). I generate emails on the mainframe and recently decided to code content_type=text/html, only to find that I had to use HTML code behind the scenes to create line breaks and whatever else I wanted.

For example, because I wanted to create a signature for my own emails, I had to code <span style=fontsize: 8pt > for the smaller size fonts.
Ask a Question
Discussion stats
  • 5 replies
  • 679 views
  • 0 likes
  • 3 in conversation