<?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: track email in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/track-email/m-p/145381#M28996</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're handing over your email to the mail server. Once the mail server has accepted it you're out of the equation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is also not guaranteed that the receiving mail server sends a confirmation that you've used a valid email address and it most certainly doesn't send any information whether the receiver has opened the email or not.&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://en.wikipedia.org/wiki/Bounce_message" title="http://en.wikipedia.org/wiki/Bounce_message"&gt;Bounce message - Wikipedia, the free encyclopedia&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So maximum you could achieve is get some kind of admin access to the sending mail server and check the send status of emails - but that's only one more step and won't give you the full picture.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 18 Jan 2014 01:38:48 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2014-01-18T01:38:48Z</dc:date>
    <item>
      <title>track email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/track-email/m-p/145380#M28995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While sending the mail to the sender, it is not possible to identify whether the mail has already reached or not.Is there any option to track it.&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;is it possible&amp;nbsp; that if error is found in the log file, then one mail will automatically comes to sender saying that the mail has not been transmitted (with attached log file).&lt;/P&gt;&lt;P&gt;and if not found, also mail comes with message showing that the mail has been send successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FILENAME Mailbox EMAIL&amp;nbsp;&amp;nbsp; from=("&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:vinxa@oracle.com"&gt;vinxa@oracle.com&lt;/A&gt;&lt;SPAN&gt;")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;to=("&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:vin@oracle.com"&gt;vin@oracle.com&lt;/A&gt;&lt;SPAN&gt;")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Subject="test"&lt;/P&gt;&lt;P&gt;put "mail sent successfully"&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 19:08:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/track-email/m-p/145380#M28995</guid>
      <dc:creator>Abraham</dc:creator>
      <dc:date>2014-01-17T19:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: track email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/track-email/m-p/145381#M28996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're handing over your email to the mail server. Once the mail server has accepted it you're out of the equation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is also not guaranteed that the receiving mail server sends a confirmation that you've used a valid email address and it most certainly doesn't send any information whether the receiver has opened the email or not.&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://en.wikipedia.org/wiki/Bounce_message" title="http://en.wikipedia.org/wiki/Bounce_message"&gt;Bounce message - Wikipedia, the free encyclopedia&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So maximum you could achieve is get some kind of admin access to the sending mail server and check the send status of emails - but that's only one more step and won't give you the full picture.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jan 2014 01:38:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/track-email/m-p/145381#M28996</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2014-01-18T01:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: track email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/track-email/m-p/145382#M28997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;For second part of your question, one way to do this would be to use a log scanning macro which would read the log for any errors/warnings/bad notes and create a macro variable indicating if the log scan passed (no errors found) or failed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro EmailReportIfCleanLog(...) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%logscan()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%if &amp;amp;LogScanResult=PASS %then %do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; %* email report to user ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; %* email programmer that program ran fine;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;%else %if &amp;amp;LogScanResult=FAIL %then %do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; %* email programmer that program failed;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can search lexjansen.com for papers on log scanning.&amp;nbsp; My favorite approach is described in &lt;A href="http://www.nesug.org/proceedings/nesug01/cc/cc4008.pdf" title="http://www.nesug.org/proceedings/nesug01/cc/cc4008.pdf"&gt;http://www.nesug.org/proceedings/nesug01/cc/cc4008.pdf&lt;/A&gt; , but unfortunately they couldn't share the full code in the paper.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you go this approach, and want to be sure the programmer gets an email even when there are errors in the log, you have to manually recover from SYNTAXCHECK mode.&amp;nbsp; So if SAS set obs=0 due to some error in your main code, I&amp;nbsp; *think* you need to set OBS=max REPLACE NOSYNTAXCHECK at the top of your log checker.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jan 2014 10:13:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/track-email/m-p/145382#M28997</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2014-01-18T10:13:50Z</dc:date>
    </item>
  </channel>
</rss>

