<?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 Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Sending-email-from-sas/m-p/101614#M28527</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; This Tech Support note implies that you might need to use the SENDER option and make FROM and SENDER the same:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/11/592.html"&gt;http://support.sas.com/kb/11/592.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and then this Tech Support note has some more explanation. &lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/5/000.html"&gt;http://support.sas.com/kb/5/000.html&lt;/A&gt; Here's the paragraph from the second note:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;"Since MVS does not have the EMAILID system option, the FILENAME option&lt;/P&gt;&lt;P&gt;"SENDER" or the !EM directive, "!EM_SENDER!" can be used to specify&lt;/P&gt;&lt;P&gt;the desired e-mail address of the sender.&amp;nbsp; The sender should not be&lt;/P&gt;&lt;P&gt;confused with the FROM e-mail address.&amp;nbsp; The option and directive are&lt;/P&gt;&lt;P&gt;available for all hosts."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you need more help, then you might want to open a track with Tech Support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Aug 2012 14:14:11 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2012-08-22T14:14:11Z</dc:date>
    <item>
      <title>Sending email from sas</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Sending-email-from-sas/m-p/101613#M28526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a SAS program that sends email to a mail address. The sas program is invoked from a mainframe jcl. When the job is submitted, the from address present in the email received is not taken directly from sas program instead the from address&amp;nbsp; gets displayed as&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; background: yellow; font-size: 11pt;"&gt;&lt;A href="mailto:%22%3C%3CMf%20user%20ID%22@SYSD.XXXXELLPOINT.COM"&gt;"&amp;lt;&amp;lt;Mf user ID"@SYSD.XXXX.COM&lt;/A&gt; on behalf of 'Expected mail address' &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where the Mf user ID is the user id from which we submit the job. We expect the from address in the mail to be present exactly as specified in the SAS program. We dont expect a from address on behalf of the expected mail address.&lt;/P&gt;&lt;P&gt;SAS step in JCL:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//SASSTEP&amp;nbsp; EXEC SAS,RGN=32M,COND=(0,NE),&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OPTIONS='EMAILHOST=SMTP.XXXX.COM'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;//SYSTCPD&amp;nbsp; DD DSN=WLP1.TCPPARMS(TCPDATC0),DISP=SHR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;//SASLOG&amp;nbsp; DD SYSOUT=*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;//SASLIST&amp;nbsp; DD SYSOUT=*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;//SYSIN&amp;nbsp;&amp;nbsp;&amp;nbsp; DD DISP=SHR,DSN=SAS Program file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAS program control card:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FILENAME OUTBOX EMAIL&lt;/P&gt;&lt;P&gt;TO= ("&lt;A href="mailto:XXXX1@YYYY1.com"&gt;XXXX1@YYYY1.com&lt;/A&gt;")&lt;/P&gt;&lt;P&gt;FROM= ("&lt;A href="mailto:ZZZZ1@KKK1.com"&gt;ZZZZ1@KKK1.com&lt;/A&gt;")&lt;/P&gt;&lt;P&gt;SUBJECT="&amp;amp;SUB1."&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;TYPE='TEXT/PLAIN'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, we&amp;nbsp; are getting from address like "M f user ID @ SYSC.XXXX.com" on behalf of &lt;A href="mailto:XXXX1@YYYY1.com"&gt;XXXX1@YYYY1.com&lt;/A&gt;"&amp;nbsp; instead of &lt;A href="mailto:XXXX1@YYYY1.com"&gt;XXXX1@YYYY1.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help in resolving this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Janet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2012 10:40:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Sending-email-from-sas/m-p/101613#M28526</guid>
      <dc:creator>Jan_S</dc:creator>
      <dc:date>2012-08-22T10:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sending email from sas</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Sending-email-from-sas/m-p/101614#M28527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; This Tech Support note implies that you might need to use the SENDER option and make FROM and SENDER the same:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/11/592.html"&gt;http://support.sas.com/kb/11/592.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and then this Tech Support note has some more explanation. &lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/5/000.html"&gt;http://support.sas.com/kb/5/000.html&lt;/A&gt; Here's the paragraph from the second note:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;"Since MVS does not have the EMAILID system option, the FILENAME option&lt;/P&gt;&lt;P&gt;"SENDER" or the !EM directive, "!EM_SENDER!" can be used to specify&lt;/P&gt;&lt;P&gt;the desired e-mail address of the sender.&amp;nbsp; The sender should not be&lt;/P&gt;&lt;P&gt;confused with the FROM e-mail address.&amp;nbsp; The option and directive are&lt;/P&gt;&lt;P&gt;available for all hosts."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you need more help, then you might want to open a track with Tech Support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2012 14:14:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Sending-email-from-sas/m-p/101614#M28527</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-08-22T14:14:11Z</dc:date>
    </item>
  </channel>
</rss>

