<?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: Sending email from SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Sending-email-from-SAS/m-p/616373#M180436</link>
    <description>&lt;P&gt;I missed one thing to check, Which emailsys option you're using?&lt;BR /&gt;&lt;BR /&gt;Is it SMTP ot MAPI? You can check it by running this command:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc options option=emailhost;run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;IF you're using SMTP option then mostly you'll not get any mails in your outbox or Sent email in Outlook,&lt;BR /&gt;Only MAPI method shows an sent emails in outlook,&lt;BR /&gt;&lt;BR /&gt;You can refer this link for more details:&lt;BR /&gt;&lt;A href="https://serverfault.com/questions/558034/smtp-sent-e-mail-not-copied-to-sent-folder" target="_blank"&gt;https://serverfault.com/questions/558034/smtp-sent-e-mail-not-copied-to-sent-folder&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For troubleshoot, you can try with MAPI method instead of SMTP and at at last you can raise a track in SAS Technical Support to investigate further.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jan 2020 03:29:53 GMT</pubDate>
    <dc:creator>Kalind_Patel</dc:creator>
    <dc:date>2020-01-10T03:29:53Z</dc:date>
    <item>
      <title>Sending email from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sending-email-from-SAS/m-p/616140#M180327</link>
      <description>&lt;P&gt;I have&amp;nbsp;written a program to send out email from SAS and it works fine.&lt;/P&gt;&lt;P&gt;My question is why does it only work on my&amp;nbsp;PC? My colleague tried to run SAS program and it finished successfully with no error or warnings but the email was not received by intended recipient. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 08:18:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sending-email-from-SAS/m-p/616140#M180327</guid>
      <dc:creator>TYT88</dc:creator>
      <dc:date>2020-01-09T08:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sending email from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sending-email-from-SAS/m-p/616142#M180328</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/306232"&gt;@TYT88&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you share some more details about the setup you have to send emails?&lt;/P&gt;&lt;P&gt;Maybe compare your and your colleague setups?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the best&lt;/P&gt;&lt;P&gt;Bart&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S. Did recipient checked the "spam" folder?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 08:31:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sending-email-from-SAS/m-p/616142#M180328</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2020-01-09T08:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sending email from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sending-email-from-SAS/m-p/616143#M180329</link>
      <description>&lt;P&gt;All the setup is in the SAS program and we didn't change anything&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 08:35:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sending-email-from-SAS/m-p/616143#M180329</guid>
      <dc:creator>TYT88</dc:creator>
      <dc:date>2020-01-09T08:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sending email from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sending-email-from-SAS/m-p/616146#M180331</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sending email from SAS requires Email Client tools to be installed and configured properly, for eg: Outlook,&amp;nbsp;&lt;BR /&gt;SAS Uses email clients to send an email, there maybe possibility that SAS executed the mail command but an email client tool is not able to send it.&lt;BR /&gt;Generally when you run the send email command from SAS, you might get this kind of popup from your outlook application, you have to allow it to allow the SAS to send the email.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-01-09_15-37-46.jpg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35231i49588FC4C0755D89/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2020-01-09_15-37-46.jpg" alt="2020-01-09_15-37-46.jpg" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 08:38:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sending-email-from-SAS/m-p/616146#M180331</guid>
      <dc:creator>Kalind_Patel</dc:creator>
      <dc:date>2020-01-09T08:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sending email from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sending-email-from-SAS/m-p/616148#M180332</link>
      <description>&lt;P&gt;Outlook is installed and configured&lt;/P&gt;&lt;P&gt;And yes, we both click on Allow&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 08:42:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sending-email-from-SAS/m-p/616148#M180332</guid>
      <dc:creator>TYT88</dc:creator>
      <dc:date>2020-01-09T08:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sending email from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sending-email-from-SAS/m-p/616151#M180335</link>
      <description>&lt;P&gt;If you're getting this popup which means SAS finished it's job, now it's Outlook's responsibility to send it,&lt;BR /&gt;Are you able to see the unsent messages in Outbox or Sent Email folder in Outlook?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 08:55:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sending-email-from-SAS/m-p/616151#M180335</guid>
      <dc:creator>Kalind_Patel</dc:creator>
      <dc:date>2020-01-09T08:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sending email from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sending-email-from-SAS/m-p/616153#M180337</link>
      <description>&lt;P&gt;Not able to see the email in unsent messages in Outbox or Sent Email folder in Outlook&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 09:30:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sending-email-from-SAS/m-p/616153#M180337</guid>
      <dc:creator>TYT88</dc:creator>
      <dc:date>2020-01-09T09:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sending email from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sending-email-from-SAS/m-p/616340#M180415</link>
      <description>&lt;P&gt;If it doesn't show in the Sent Email folder then Outlook never sent it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is obviously something different about the SAS / email setup on the PC where it doesn't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please post the program you are using.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 22:19:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sending-email-from-SAS/m-p/616340#M180415</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-01-09T22:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sending email from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sending-email-from-SAS/m-p/616369#M180433</link>
      <description>&lt;P&gt;Here is the program with modified email address to hide anonymity&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;FILENAME output EMAIL&lt;BR /&gt;FROM = ("test@mail.com")&lt;BR /&gt;SENDER = ("test@mail.com")&lt;BR /&gt;TO = (&amp;amp;TOEMAILS)&lt;BR /&gt;CC = (&amp;amp;CCEMAILS)&lt;BR /&gt;BCC = (&amp;amp;SIM_MEMBERS)&lt;BR /&gt;SUBJECT = ("test mail")&lt;BR /&gt;CONTENT_TYPE="text/html";&lt;BR /&gt;ODS HTML BODY=output options(pagebreak='no') style =MYSTYLE;&lt;/P&gt;&lt;P&gt;PROC ODSTEXT;&lt;BR /&gt;P "test mail";&lt;BR /&gt;P ' ';&lt;BR /&gt;P "xxxx";&lt;BR /&gt;P "(For Internal Use only)";&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;PROC TABULATE DATA=table1 FORMAT=COMMA15.;&lt;BR /&gt;CLASS location sales;&lt;BR /&gt;classlev location/ S={foreground=BLACK BorderWidth=1 background=powderblue FONT_FACE='ARIAL' font_size=8pt VJUST=C width=1.75in};&lt;BR /&gt;classlev sales / S={foreground=BLACK BorderWidth=1 BorderrightWidth=7 background= LIGY FONT_FACE='ARIAL' font_size=8pt borderwidth=1 width=1.75in};&lt;BR /&gt;VAR &amp;amp;LMMM._Actual &amp;amp;MMM._RunRate Month_Target/ s=[foreground=BLACK BACKGROUND=WHITE BorderWidth=1 background=PAGY FONT_FACE='ARIAL' font_size=8pt FONT_WEIGHT=BOLD width=1in];&lt;BR /&gt;VAR Achievement / s=[foreground=BLACK BACKGROUND=WHITE BorderWidth= 1 BorderrightWidth=7 background=PAGY FONT_FACE='ARIAL' font_size=8pt FONT_WEIGHT=BOLD width=1in];&lt;BR /&gt;FORMAT location Hcode. sales Vcode.;&lt;BR /&gt;TABLE location ='',&lt;BR /&gt;sales=''*(&amp;amp;LMMM._Actual*{S=[FONT_FACE='ARIAL' BorderWidth= 1 FOREGROUND=BLACK font_size=8pt]}*SUM=''&lt;BR /&gt;&amp;amp;MMM._RunRate*{S=[FONT_FACE='ARIAL' BorderWidth= 1 FOREGROUND=BLACK font_size=8pt]}*SUM=''&lt;BR /&gt;Month_Target*{S=[FONT_FACE='ARIAL' BorderWidth= 1 FOREGROUND=BLACK font_size=8pt]}*SUM=''&lt;BR /&gt;Achievement*f=pctfmt9.*{S=[FONT_FACE='ARIAL' BorderWidth= 1 fontweight=bold BorderrightWidth=7 BACKGROUND= PCT. FOREGROUND=FONT. font_size=8pt]}*SUM='')&lt;BR /&gt;/ BOX={LABEL='XXX' S=[foreground=BLACK background= powderblue FONT_FACE='ARIAL' font_size=10pt font_style=italic borderwidth=1]};&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;PROC ODSTEXT;&lt;BR /&gt;P "";&lt;BR /&gt;P "Kindly contact XXXX for any enquiries.";&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;ODS _ALL_ CLOSE;&lt;BR /&gt;FILENAME output CLEAR;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 01:57:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sending-email-from-SAS/m-p/616369#M180433</guid>
      <dc:creator>TYT88</dc:creator>
      <dc:date>2020-01-10T01:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sending email from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sending-email-from-SAS/m-p/616372#M180435</link>
      <description>&lt;P&gt;I found out is because the MS outlook was not open&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once MS outlook is opened, all the emails sent out&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However they are a bunch of HTML tags - what did I do wrong?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&amp;gt;&lt;BR /&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&lt;BR /&gt;&amp;lt;meta name="Generator" content="SAS Software Version 9.4, see &lt;A href="http://www.sas.com" target="_blank"&gt;www.sas.com&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;lt;meta http-equiv="Content-type" content="text/html; charset=windows-1252"&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt;SAS Output&amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;lt;style type="text/css"&amp;gt;&lt;BR /&gt;&amp;lt;!--&lt;BR /&gt;.activelink&lt;BR /&gt;{&lt;BR /&gt;color: #800080;&lt;BR /&gt;}&lt;BR /&gt;.aftercaption&lt;BR /&gt;{&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 03:10:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sending-email-from-SAS/m-p/616372#M180435</guid>
      <dc:creator>TYT88</dc:creator>
      <dc:date>2020-01-10T03:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sending email from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sending-email-from-SAS/m-p/616373#M180436</link>
      <description>&lt;P&gt;I missed one thing to check, Which emailsys option you're using?&lt;BR /&gt;&lt;BR /&gt;Is it SMTP ot MAPI? You can check it by running this command:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc options option=emailhost;run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;IF you're using SMTP option then mostly you'll not get any mails in your outbox or Sent email in Outlook,&lt;BR /&gt;Only MAPI method shows an sent emails in outlook,&lt;BR /&gt;&lt;BR /&gt;You can refer this link for more details:&lt;BR /&gt;&lt;A href="https://serverfault.com/questions/558034/smtp-sent-e-mail-not-copied-to-sent-folder" target="_blank"&gt;https://serverfault.com/questions/558034/smtp-sent-e-mail-not-copied-to-sent-folder&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For troubleshoot, you can try with MAPI method instead of SMTP and at at last you can raise a track in SAS Technical Support to investigate further.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 03:29:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sending-email-from-SAS/m-p/616373#M180436</guid>
      <dc:creator>Kalind_Patel</dc:creator>
      <dc:date>2020-01-10T03:29:53Z</dc:date>
    </item>
  </channel>
</rss>

