<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Having SAS actually SEND the email in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Having-SAS-actually-SEND-the-email/m-p/67878#M19434</link>
    <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
I finally got this to work correctly.  This is what I finally found after searching the internet.&lt;BR /&gt;
&lt;BR /&gt;
First - I had to find my mail server name, so I did this:&lt;BR /&gt;
Opened DOS window and did the following:  &lt;BR /&gt;
ping  mail.mycompany.com&lt;BR /&gt;
&lt;BR /&gt;
this gave me my mail IP Address.&lt;BR /&gt;
&lt;BR /&gt;
So, in the config file I added these lines that Bill talked about:&lt;BR /&gt;
-xwait off  /* Don's know if you need this or not but it's there */&lt;BR /&gt;
-emailhost=my.mail.ip.address     /* 148.xxx.xx.xxx */&lt;BR /&gt;
-emailsys=SMTP&lt;BR /&gt;
&lt;BR /&gt;
Saved the SAS9.2.cfg file &lt;BR /&gt;
&lt;BR /&gt;
FILENAME mymail EMAIL&lt;BR /&gt;
	To= 'myusername@mycompany.com'    &lt;BR /&gt;
	SUBJECT="Testing version for PC SAS Email" ;&lt;BR /&gt;
DATA _null_;&lt;BR /&gt;
	FILE mymail;&lt;BR /&gt;
	PUT "Good Morning,";&lt;BR /&gt;
	PUT " " ;&lt;BR /&gt;
	PUT "Have a nice day,";&lt;BR /&gt;
	PUT " " ;&lt;BR /&gt;
	PUT " :  )  ";&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I ran the program and it finally automatically SENT the email.  It didn't have to wait &lt;BR /&gt;
for me to hit the SEND button.&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps someone else.&lt;BR /&gt;
&lt;BR /&gt;
Have a good day!  Nancy</description>
    <pubDate>Mon, 23 May 2011 16:58:23 GMT</pubDate>
    <dc:creator>SASHunter</dc:creator>
    <dc:date>2011-05-23T16:58:23Z</dc:date>
    <item>
      <title>Having SAS actually SEND the email</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Having-SAS-actually-SEND-the-email/m-p/67873#M19429</link>
      <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
I am attempting to send an email from my local PC SAS to my Lotus Notes email account. Or to my home email whichever.  I have tried both.  The code runs fine and it opens Lotus Notes and starts an e-mail with the data in the body and the TO: and SUBJECT: correct, but it does not actually SEND the e-mail.  I have to push the send button from within Lotus Notes.  &lt;BR /&gt;
&lt;BR /&gt;
How can I actually get it to SEND the e-mail without my intervention?&lt;BR /&gt;
&lt;BR /&gt;
Here is the simple code I am testing:&lt;BR /&gt;
&lt;BR /&gt;
%let username = myname ; &lt;BR /&gt;
FILENAME mymail EMAIL &lt;BR /&gt;
To= (&amp;amp;username@mycompany.com) &lt;BR /&gt;
SUBJECT="Testing version for PC SAS Email" ;&lt;BR /&gt;
DATA _null_;&lt;BR /&gt;
	FILE mymail;&lt;BR /&gt;
	PUT "Good Morning,";&lt;BR /&gt;
	PUT " " ;&lt;BR /&gt;
	PUT "Have a nice day,";&lt;BR /&gt;
	PUT " " ;&lt;BR /&gt;
	PUT " :  )  ";&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks for any advice with this.&lt;BR /&gt;
&lt;BR /&gt;
Nancy</description>
      <pubDate>Fri, 20 May 2011 13:03:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Having-SAS-actually-SEND-the-email/m-p/67873#M19429</guid>
      <dc:creator>SASHunter</dc:creator>
      <dc:date>2011-05-20T13:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Having SAS actually SEND the email</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Having-SAS-actually-SEND-the-email/m-p/67874#M19430</link>
      <description>Could you try by including FROM in the file name statement..?&lt;BR /&gt;
&lt;BR /&gt;
FILENAME mymail EMAIL &lt;BR /&gt;
FROM= (&amp;amp;username@mycompany.com) &lt;BR /&gt;
TO= (&amp;amp;username@mycompany.com) &lt;BR /&gt;
SUBJECT="Testing version for PC SAS Email" ;

Message was edited by: ChendhilKumar</description>
      <pubDate>Fri, 20 May 2011 13:29:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Having-SAS-actually-SEND-the-email/m-p/67874#M19430</guid>
      <dc:creator>ChendhilKumar</dc:creator>
      <dc:date>2011-05-20T13:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Having SAS actually SEND the email</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Having-SAS-actually-SEND-the-email/m-p/67875#M19431</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your reply -&lt;BR /&gt;
I tried to add in the FROM: line, but that does not change anything.  It stills just opens up in Lotus Notes and waits for me to hit the SEND button.  &lt;BR /&gt;
&lt;BR /&gt;
I also saw a SAS Usage Note 9641&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/9/641.html" target="_blank"&gt;http://support.sas.com/kb/9/641.html&lt;/A&gt; &lt;BR /&gt;
saying that I may have to update the WIN.INI file.  So I added the lines it said, but still nothing.&lt;BR /&gt;
&lt;BR /&gt;
Any other suggestions?&lt;BR /&gt;
&lt;BR /&gt;
Thanks, Nancy</description>
      <pubDate>Fri, 20 May 2011 14:10:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Having-SAS-actually-SEND-the-email/m-p/67875#M19431</guid>
      <dc:creator>SASHunter</dc:creator>
      <dc:date>2011-05-20T14:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Having SAS actually SEND the email</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Having-SAS-actually-SEND-the-email/m-p/67876#M19432</link>
      <description>Nancy;&lt;BR /&gt;
&lt;BR /&gt;
It's likely that some security settings are preventing full automation.  Adding the following lines to sasv9cfg (sas config file) fully automates the send.  You will have to customize for your environment.&lt;BR /&gt;
&lt;BR /&gt;
/*Next 4 lines unique to my setup*/&lt;BR /&gt;
-xwait off&lt;BR /&gt;
-emailhost=usenet.domain.ca  **your setting here&lt;BR /&gt;
-emailsys=SMTP&lt;BR /&gt;
-emailid "SASHunter@domain.ca"  **your setting here</description>
      <pubDate>Fri, 20 May 2011 18:00:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Having-SAS-actually-SEND-the-email/m-p/67876#M19432</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2011-05-20T18:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Having SAS actually SEND the email</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Having-SAS-actually-SEND-the-email/m-p/67877#M19433</link>
      <description>Bill - thanks for your reply &lt;BR /&gt;
&lt;BR /&gt;
First of all I don't exactly know what the emailhost name is.  I am using lotus notes and I have found under preferences that my server name is IT010HQLNM/HQ/BOC.  &lt;BR /&gt;
&lt;BR /&gt;
I put this in my config file and I get the following:&lt;BR /&gt;
ERROR: Email host it010hqlnm/hq/boc not found.&lt;BR /&gt;
&lt;BR /&gt;
Can you tell me how to find my domain (or host name)  I guess they are the same?&lt;BR /&gt;
Also, is my regular email address that I would give to someone, my emailid?&lt;BR /&gt;
When I called our Support people they said our domain is BOC.  I tried that also and it doesn't work either.&lt;BR /&gt;
&lt;BR /&gt;
I really want to get this mail to automatically be sent.&lt;BR /&gt;
&lt;BR /&gt;
Thanks, Nancy</description>
      <pubDate>Mon, 23 May 2011 15:32:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Having-SAS-actually-SEND-the-email/m-p/67877#M19433</guid>
      <dc:creator>SASHunter</dc:creator>
      <dc:date>2011-05-23T15:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Having SAS actually SEND the email</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Having-SAS-actually-SEND-the-email/m-p/67878#M19434</link>
      <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
I finally got this to work correctly.  This is what I finally found after searching the internet.&lt;BR /&gt;
&lt;BR /&gt;
First - I had to find my mail server name, so I did this:&lt;BR /&gt;
Opened DOS window and did the following:  &lt;BR /&gt;
ping  mail.mycompany.com&lt;BR /&gt;
&lt;BR /&gt;
this gave me my mail IP Address.&lt;BR /&gt;
&lt;BR /&gt;
So, in the config file I added these lines that Bill talked about:&lt;BR /&gt;
-xwait off  /* Don's know if you need this or not but it's there */&lt;BR /&gt;
-emailhost=my.mail.ip.address     /* 148.xxx.xx.xxx */&lt;BR /&gt;
-emailsys=SMTP&lt;BR /&gt;
&lt;BR /&gt;
Saved the SAS9.2.cfg file &lt;BR /&gt;
&lt;BR /&gt;
FILENAME mymail EMAIL&lt;BR /&gt;
	To= 'myusername@mycompany.com'    &lt;BR /&gt;
	SUBJECT="Testing version for PC SAS Email" ;&lt;BR /&gt;
DATA _null_;&lt;BR /&gt;
	FILE mymail;&lt;BR /&gt;
	PUT "Good Morning,";&lt;BR /&gt;
	PUT " " ;&lt;BR /&gt;
	PUT "Have a nice day,";&lt;BR /&gt;
	PUT " " ;&lt;BR /&gt;
	PUT " :  )  ";&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I ran the program and it finally automatically SENT the email.  It didn't have to wait &lt;BR /&gt;
for me to hit the SEND button.&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps someone else.&lt;BR /&gt;
&lt;BR /&gt;
Have a good day!  Nancy</description>
      <pubDate>Mon, 23 May 2011 16:58:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Having-SAS-actually-SEND-the-email/m-p/67878#M19434</guid>
      <dc:creator>SASHunter</dc:creator>
      <dc:date>2011-05-23T16:58:23Z</dc:date>
    </item>
  </channel>
</rss>

