<?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: Send Email in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Send-Email/m-p/159500#M1953</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I didn't make it clear that I was trying to send from inside SAS University Edition under VMWare.&amp;nbsp; The code below runs but the email never show up.&amp;nbsp; How do I connect to an email server outside of SAS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks, Howard&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data mails ;&lt;BR /&gt;&amp;nbsp; length mail_id $50. ;&lt;BR /&gt;&amp;nbsp; mail_id = "&lt;A href="mailto:howard@mayers.org"&gt;howard@mayers.org&lt;/A&gt;" ;&lt;BR /&gt;&amp;nbsp; output ;&lt;BR /&gt;&amp;nbsp; mail_id = "&lt;A href="mailto:hr@dba.ws"&gt;hr@dba.ws&lt;/A&gt;" ;&lt;BR /&gt;&amp;nbsp; output ; &lt;BR /&gt;&amp;nbsp; mail_id = "&lt;A href="mailto:howard@get90team.com"&gt;howard@get90team.com&lt;/A&gt;" ;&lt;BR /&gt;&amp;nbsp; output ;&lt;BR /&gt;&amp;nbsp; stop ;&amp;nbsp; &lt;BR /&gt;run ;&lt;/P&gt;&lt;P&gt;proc sort ; by mail_id ; run ;&lt;BR /&gt;proc print ; run ;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%macro send_email ;&lt;/P&gt;&lt;P&gt;filename hm_mail email lrecl=32000 type='text/html' ;&lt;/P&gt;&lt;P&gt;data _null_ ;&lt;BR /&gt;set mails END=EOF ;&lt;BR /&gt;by mail_id ;&lt;BR /&gt;file hm_mail ;&lt;/P&gt;&lt;P&gt;retain numofusers 0 ;&lt;BR /&gt;if first.mail_id then do ;&lt;BR /&gt;&amp;nbsp; numofusers=numofusers+1 ;&lt;BR /&gt;&amp;nbsp; If mod(numofusers,300) = 0 then Timer=Sleep(120,1) ;&lt;BR /&gt;&amp;nbsp; put '!EM_TO!' mail_id ;&lt;BR /&gt;&amp;nbsp; put '!EM_SUBJECT!' 'Test Plans have been created.' ;&lt;BR /&gt;&amp;nbsp; put 'The following test plans have been created with you as a tester.' ;&lt;BR /&gt;&amp;nbsp; put '&amp;lt;br&amp;gt;' ;&lt;BR /&gt;&amp;nbsp; end ;&lt;/P&gt;&lt;P&gt;id_link = '&amp;lt;a href="' ||left(strip(id)) || '"&amp;gt;' || left(strip(id)) || '&amp;lt;/a&amp;gt;' ;&lt;BR /&gt;put '&amp;lt;br&amp;gt;' ;&lt;BR /&gt;put id_link ;&lt;BR /&gt;put '&amp;lt;br&amp;gt;' ;&lt;/P&gt;&lt;P&gt;if last.mail_id then do ;&lt;BR /&gt;&amp;nbsp; put '&amp;lt;br&amp;gt;' ;&lt;BR /&gt;&amp;nbsp; put 'This is a system-generated message. Do not reply to this e-mail.' ;&lt;BR /&gt;&amp;nbsp; put '!EM_SEND!' ;&lt;BR /&gt;&amp;nbsp; put '!EM_NEWMSG!' ;&lt;BR /&gt;end ;&lt;BR /&gt;if EOF then put '!EM_ABORT!' ;&lt;BR /&gt;run ;&lt;/P&gt;&lt;P&gt;%mend send_email ;&lt;BR /&gt;%send_email ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Dec 2014 03:50:01 GMT</pubDate>
    <dc:creator>hrmayers</dc:creator>
    <dc:date>2014-12-22T03:50:01Z</dc:date>
    <item>
      <title>Send Email</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Send-Email/m-p/159498#M1951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;How do I connect the data step creating emails to the outside world?&amp;nbsp; Running under VMWare. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 01:55:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Send-Email/m-p/159498#M1951</guid>
      <dc:creator>hrmayers</dc:creator>
      <dc:date>2014-12-22T01:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Send Email</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Send-Email/m-p/159499#M1952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename mailbox email;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;file mailbox &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:to='emailaddress@x.com"&gt;to='emailaddress@x.com&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;subject='test mail';&lt;/P&gt;&lt;P&gt;put "hello";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Jag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 03:23:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Send-Email/m-p/159499#M1952</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2014-12-22T03:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Send Email</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Send-Email/m-p/159500#M1953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I didn't make it clear that I was trying to send from inside SAS University Edition under VMWare.&amp;nbsp; The code below runs but the email never show up.&amp;nbsp; How do I connect to an email server outside of SAS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks, Howard&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data mails ;&lt;BR /&gt;&amp;nbsp; length mail_id $50. ;&lt;BR /&gt;&amp;nbsp; mail_id = "&lt;A href="mailto:howard@mayers.org"&gt;howard@mayers.org&lt;/A&gt;" ;&lt;BR /&gt;&amp;nbsp; output ;&lt;BR /&gt;&amp;nbsp; mail_id = "&lt;A href="mailto:hr@dba.ws"&gt;hr@dba.ws&lt;/A&gt;" ;&lt;BR /&gt;&amp;nbsp; output ; &lt;BR /&gt;&amp;nbsp; mail_id = "&lt;A href="mailto:howard@get90team.com"&gt;howard@get90team.com&lt;/A&gt;" ;&lt;BR /&gt;&amp;nbsp; output ;&lt;BR /&gt;&amp;nbsp; stop ;&amp;nbsp; &lt;BR /&gt;run ;&lt;/P&gt;&lt;P&gt;proc sort ; by mail_id ; run ;&lt;BR /&gt;proc print ; run ;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%macro send_email ;&lt;/P&gt;&lt;P&gt;filename hm_mail email lrecl=32000 type='text/html' ;&lt;/P&gt;&lt;P&gt;data _null_ ;&lt;BR /&gt;set mails END=EOF ;&lt;BR /&gt;by mail_id ;&lt;BR /&gt;file hm_mail ;&lt;/P&gt;&lt;P&gt;retain numofusers 0 ;&lt;BR /&gt;if first.mail_id then do ;&lt;BR /&gt;&amp;nbsp; numofusers=numofusers+1 ;&lt;BR /&gt;&amp;nbsp; If mod(numofusers,300) = 0 then Timer=Sleep(120,1) ;&lt;BR /&gt;&amp;nbsp; put '!EM_TO!' mail_id ;&lt;BR /&gt;&amp;nbsp; put '!EM_SUBJECT!' 'Test Plans have been created.' ;&lt;BR /&gt;&amp;nbsp; put 'The following test plans have been created with you as a tester.' ;&lt;BR /&gt;&amp;nbsp; put '&amp;lt;br&amp;gt;' ;&lt;BR /&gt;&amp;nbsp; end ;&lt;/P&gt;&lt;P&gt;id_link = '&amp;lt;a href="' ||left(strip(id)) || '"&amp;gt;' || left(strip(id)) || '&amp;lt;/a&amp;gt;' ;&lt;BR /&gt;put '&amp;lt;br&amp;gt;' ;&lt;BR /&gt;put id_link ;&lt;BR /&gt;put '&amp;lt;br&amp;gt;' ;&lt;/P&gt;&lt;P&gt;if last.mail_id then do ;&lt;BR /&gt;&amp;nbsp; put '&amp;lt;br&amp;gt;' ;&lt;BR /&gt;&amp;nbsp; put 'This is a system-generated message. Do not reply to this e-mail.' ;&lt;BR /&gt;&amp;nbsp; put '!EM_SEND!' ;&lt;BR /&gt;&amp;nbsp; put '!EM_NEWMSG!' ;&lt;BR /&gt;end ;&lt;BR /&gt;if EOF then put '!EM_ABORT!' ;&lt;BR /&gt;run ;&lt;/P&gt;&lt;P&gt;%mend send_email ;&lt;BR /&gt;%send_email ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 03:50:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Send-Email/m-p/159500#M1953</guid>
      <dc:creator>hrmayers</dc:creator>
      <dc:date>2014-12-22T03:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Send Email</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Send-Email/m-p/159501#M1954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am not sure about it though. But i believe if we do not have the licensed sas version, the email thing does not work.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 04:44:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Send-Email/m-p/159501#M1954</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2014-12-22T04:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Send Email</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Send-Email/m-p/159502#M1955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS uses the local mail agent to forward mail. You either have ) no working mail agent in the VM, or ) it does not have a valid mail relay configured and therefore the mails end up nowhere.&lt;/P&gt;&lt;P&gt;You can see the SAS configuration in your log when you do proc options; run; Look for options starting with EMAIL.&lt;/P&gt;&lt;P&gt;I don't know if the SAS UE VM can have access to the world outside of its host (your desktop PC). If yes, you might try to configure a valid mail relay (SMTP server) using these options.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 10:02:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Send-Email/m-p/159502#M1955</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-12-22T10:02:26Z</dc:date>
    </item>
  </channel>
</rss>

