How to Send Emails from SAS

Accepted Solution Solved
Reply
Super Contributor
Posts: 276
Accepted Solution

How to Send Emails from SAS

Hi All...

I am having SAS 9.1 version in my personal computer and i am trying to send the mails by writing SAS code but i can't.

Is there any configuration required to do this process??? If Yes Can you please explain what is  the process to follow to send the mails from SAS.

Thanks in advance..

Regards..

Sanjeev.K


Accepted Solutions
Solution
‎10-10-2012 08:46 AM
Super Contributor
Posts: 276

Re: How to Send Emails from SAS

Posted in reply to kuridisanjeev

Hi all.

Thanks for your clarifications.

I googled this topic and found a nice paper regarding SAS configuration for sending mails.

you can get that paper in bellow link.

http://www2.sas.com/proceedings/forum2008/038-2008.pdf

Regards..

Sanjeev.K

View solution in original post


All Replies
SAS Super FREQ
Posts: 8,868

Re: How to Send Emails from SAS

Posted in reply to kuridisanjeev

Hi:

  There have been a LOT of previous postings on this subject. I'm surprised they didn't turn up on a search of the forums. But, even so, the documentation is quite thorough about describing what start up options needs to be set. Since you did not show your code, it's hard to make a suggestion. Were you using the FILENAME engine by itself or in conjunction with ODS?

  Also, on your PC, if you are using Outlook, you can't successfully send mail until you wait for the Outlook popup box to warn you that it is sending mail on your behalf and you have to click 'Continue'. (also documented in a Tech Support note)

  If you are still having issues after searching the doc, then you might want to work with Tech Support, because e-mail can be tricky depending on what you want to do, whether the BI Platform is involved, what your code looks like, what your mail client is, what your server is, whether you can change your SAS start up options, etc.

cynthia


Super Contributor
Posts: 276

Re: How to Send Emails from SAS

Posted in reply to Cynthia_sas

Hi Cynthia..

Just i am using bellow basic code to send a sample mail..

FILENAME  Mailbox EMAIL 'abc@gmail.com'

Subject='Test Mail message';

DATA _NULL_;

FILE Mailbox;

PUT "Hello";

PUT "This is a message from the SAS";

RUN;

Thanks..

Sanjeev.K

Trusted Advisor
Posts: 2,116

Re: How to Send Emails from SAS

Posted in reply to kuridisanjeev

Sanjeev,

There has been a bunch written about this topic, both here and in SAS notes.  There are lots of variables that may have impact in you circumstances.  For instance, if you are using Lotus Notes, the process is different from using Outlook.  If you have an SMTP gateway, you need to know its name.  After, you have read some and you have tried some of the things, if you need to come back, provide more information (for instance:  OS, e-mail client, and the code you tried).

Doc Muhlbaier

Duke

Super Contributor
Posts: 276

Re: How to Send Emails from SAS

Hi Muhlbaier,

As i mentioned in earlier post, just i am using basic code to send a mail for testing purpose.

i am having Windows7 OS in my PC and using Outlook as mail client.

Regards..

Sanjeev.K

Trusted Advisor
Posts: 2,116

Re: How to Send Emails from SAS

Posted in reply to kuridisanjeev

You need to set a number of SAS OPTIONS too.  See, for instance,

http://www2.sas.com/proceedings/forum2008/038-2008.pdf

Super Contributor
Posts: 276

Re: How to Send Emails from SAS

Hi..

I found this paper bit early then you:-)

Any way thank you  so much for your consideration.i'll try with these options and let you know if  i found any thing wrong..

Thanks &Regards,.

Sanjeev.K

Solution
‎10-10-2012 08:46 AM
Super Contributor
Posts: 276

Re: How to Send Emails from SAS

Posted in reply to kuridisanjeev

Hi all.

Thanks for your clarifications.

I googled this topic and found a nice paper regarding SAS configuration for sending mails.

you can get that paper in bellow link.

http://www2.sas.com/proceedings/forum2008/038-2008.pdf

Regards..

Sanjeev.K

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 7 replies
  • 413 views
  • 3 likes
  • 3 in conversation