<?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: A program is trying to send an email on your behalf in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/A-program-is-trying-to-send-an-email-on-your-behalf/m-p/192970#M266234</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might check with your IT or whoever manages you email server. You might find that emailPort=25 is blocked.&lt;/P&gt;&lt;P&gt;or if they have installed some security software that needs to be informed that the SAS process is excluded from the blocking rules.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Jan 2015 21:23:43 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2015-01-22T21:23:43Z</dc:date>
    <item>
      <title>A program is trying to send an email on your behalf</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-program-is-trying-to-send-an-email-on-your-behalf/m-p/192969#M266233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After researching the topic, I have not found an answer. I know there are other threads on this topic, but none of the suggested solutions have worked for me, at least not when I run my code locally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem:&lt;/P&gt;&lt;P&gt;Recently upgraded to Office 2010. The code that sends an email, and that worked previously does not function anymore. Instead, a know pop-up appears and reads:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"A program is trying to send an e-mail on your behalf. If this is unexpected, click Deny and verify your antivirus software is up-to-date."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If "Allow" is clicked, the email sits in the outbox until outlook is opened.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is run locally:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;251 filename mymail email "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:first.lastname@mycompanyname.com"&gt;first.lastname@mycompanyname.com&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;" subject="test&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;252 message";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;253 data _null_;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;254 file mymail;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;255 put 'hello there';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;256 run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have already consulted the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/5/335.html"&gt;http://support.sas.com/kb/5/335.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/19/767.html"&gt;http://support.sas.com/kb/19/767.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and have attempted to alter the sasv9.cfg file as well as add the options to no avail:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;249 options emailsys=smtp emailhost=mailer.mycompanyname.com emailport=25;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;250&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;251 filename mymail email "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:first.lastname@mycompanyname.com"&gt;first.lastname@mycompanyname.com&lt;/A&gt;&lt;SPAN&gt;" subject="test&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;252 message";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;253 data _null_;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;254 file mymail;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;255 put 'hello there';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;256 run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: The file MYMAIL is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E-Mail Access Device&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;ERROR: Email: The connection was refused&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;real time 0.17 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now here's the twist. If I run that last piece of code through the unix server (i.e. through Rsubmit), it runs fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas as to how to get around this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 21:19:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-program-is-trying-to-send-an-email-on-your-behalf/m-p/192969#M266233</guid>
      <dc:creator>FraudReporter</dc:creator>
      <dc:date>2015-01-22T21:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: A program is trying to send an email on your behalf</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-program-is-trying-to-send-an-email-on-your-behalf/m-p/192970#M266234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might check with your IT or whoever manages you email server. You might find that emailPort=25 is blocked.&lt;/P&gt;&lt;P&gt;or if they have installed some security software that needs to be informed that the SAS process is excluded from the blocking rules.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 21:23:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-program-is-trying-to-send-an-email-on-your-behalf/m-p/192970#M266234</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-01-22T21:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: A program is trying to send an email on your behalf</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-program-is-trying-to-send-an-email-on-your-behalf/m-p/192971#M266235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are having the same problem I had, I had to switch to CDO mail.&amp;nbsp; I don't use and not longer have access to PC SAS so I can NOT test this to see if it still works but you might be able to get it working.&amp;nbsp; Change DOMAIN.COM to appropriate value for you. You can also BING/GOOGLE "CDO mail" and find info regarding the subject.&amp;nbsp; Your mileage may vary. :smileyplain:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;_null_&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;length&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; to script filevar command $&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;256&lt;/STRONG&gt;&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; to = catx(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'@'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;,sysget(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'USERNAME'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'domain.com'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; script&amp;nbsp;&amp;nbsp;&amp;nbsp; = catx(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'\'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;,pathname(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'WORK'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'email.vbs'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; filevar&amp;nbsp;&amp;nbsp; = script;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #ffffff;"&gt;/* write the script */&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;file&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; dummy1 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;filevar&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=filevar;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;put&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;&lt;SPAN&gt;'Const sch="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/"&gt;http://schemas.microsoft.com/cdo/configuration/&lt;/A&gt;&lt;SPAN&gt;"'&lt;/SPAN&gt;&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;put&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'Set myMail=CreateObject("CDO.Message")'&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;put&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'With myMail'&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; put +&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'.Subject="Sending email with CDO"'&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; put +&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;&lt;SPAN&gt;'.From="&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:userid@domain.com"&gt;userid@domain.com&lt;/A&gt;&lt;SPAN&gt;"'&lt;/SPAN&gt;&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; put +&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'.'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; To=:&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;$quote128.&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; put +&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'.TextBody="This is a message." &amp;amp; vblf &amp;amp; "This is line two"'&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; put +&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'.Configuration.Fields.Item (sch &amp;amp; "sendusing")=2'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; put +&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'.Configuration.Fields.Item (sch &amp;amp; "smtpserver")="smtp.domain.com"'&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; put +&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'.Configuration.Fields.Item (sch &amp;amp; "smtpserverport")= 25'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; put +&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'.Configuration.Fields.Update'&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; put +&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'.Send'&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;put&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'End With'&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;put&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'set myMail=nothing'&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #ffffff;"&gt;/* close the script file by opening another file, not used */&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #ffffff;"&gt;/* without this VBSCRIPT remains open and cannot be used below in the same data set */&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; filevar = catx(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'\'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;,pathname(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'WORK'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'DUMMY2.vbs'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;file&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; dummy1 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;filevar&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=filevar;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #ffffff;"&gt;/* look at the script, not necessary but may be useful */&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;infile&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; dummy6 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;filevar&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=script &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=eof;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;do&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; _n_ = &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;by&lt;/SPAN&gt; &lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;while&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;(not eof);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;input&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;putlog&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'NOTE: '&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; _n_ &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;3.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; +&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; _infile_;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;end&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #ffffff;"&gt;/* call the script */&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; command = catx(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;' '&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'cscript //nologo'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;,quote(strip(script)));&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;infile&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; dummy7 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;pipe&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;filevar&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=command &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=eof;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;do&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;while&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;(not eof);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;input&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;put&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;_infile_&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;end&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;stop&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #ffffff;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 22:31:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-program-is-trying-to-send-an-email-on-your-behalf/m-p/192971#M266235</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2015-01-22T22:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: A program is trying to send an email on your behalf</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-program-is-trying-to-send-an-email-on-your-behalf/m-p/192972#M266236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for this. I don't have access to the machine today, but will be able to test it next week. I will get back with the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;H.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 13:25:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-program-is-trying-to-send-an-email-on-your-behalf/m-p/192972#M266236</guid>
      <dc:creator>FraudReporter</dc:creator>
      <dc:date>2015-01-23T13:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: A program is trying to send an email on your behalf</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-program-is-trying-to-send-an-email-on-your-behalf/m-p/192973#M266237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update, the code provided by data_null_ did not work unfortunately.&lt;/P&gt;&lt;P&gt;I will escalate within our help desk to see what can be done. Seems that in some cases adjusting the code will not be sufficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you both for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 16:05:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-program-is-trying-to-send-an-email-on-your-behalf/m-p/192973#M266237</guid>
      <dc:creator>FraudReporter</dc:creator>
      <dc:date>2015-01-27T16:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: A program is trying to send an email on your behalf</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-program-is-trying-to-send-an-email-on-your-behalf/m-p/192974#M266238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In way did the code "not work".&amp;nbsp; It has several "moving parts" so it is important to know what failed where.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you research CDO mail or just run the code I posted and stop there?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 16:14:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-program-is-trying-to-send-an-email-on-your-behalf/m-p/192974#M266238</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2015-01-27T16:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: A program is trying to send an email on your behalf</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-program-is-trying-to-send-an-email-on-your-behalf/m-p/192975#M266239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS either uses the local (on the machine that runs SAS) mail transfer agent or a connection to a mail (SMTP) server. It looks like your local MTA (outlook?) needs to be informed that SAS is allowed to send mails.&lt;/P&gt;&lt;P&gt;Or the SMTP server must be configured to accept the SAS machine as mail sending client.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 16:28:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-program-is-trying-to-send-an-email-on-your-behalf/m-p/192975#M266239</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2015-01-27T16:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: A program is trying to send an email on your behalf</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-program-is-trying-to-send-an-email-on-your-behalf/m-p/192976#M266240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@ data_null_ I performed some research online, but only found CDO references to VB script. I attempted to customize the code to "fill in the blank", but to be honest I am not sure I was able to get the proper parameters around user names/domain. I am not sure if those parameters I was inputing in the options or sasv9.cfg file were accurate, and I cannot get IT to clarify that for me.&lt;/P&gt;&lt;P&gt;I appreciate your input and will keep your suggestion handy as my current solution is a temporary patch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luckily, I still have access to the registry, and was able to perform the following action to get around the issue in a way.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;At "HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\14.0\outlook\security" create the following DWORDs with the value "2":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PromptSimpleMAPISend&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PromptSimpleMAPINameResolve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PromptSimpleMAPIOpenMessage&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-size: 12pt;"&gt;This supresses the pop-up and the message is sent. However, the outlook window must be opened. If it's not open, the message sits in the outbox.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-size: 12pt;"&gt;Of course, if anyone does not have access to the registry, they are out of luck. But this solves my issue for the time being.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-size: 12pt;"&gt;Thanks to all who took the time to contribute, much appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2015 14:58:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-program-is-trying-to-send-an-email-on-your-behalf/m-p/192976#M266240</guid>
      <dc:creator>FraudReporter</dc:creator>
      <dc:date>2015-01-29T14:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: A program is trying to send an email on your behalf</title>
      <link>https://communities.sas.com/t5/SAS-Programming/A-program-is-trying-to-send-an-email-on-your-behalf/m-p/192977#M266241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't specify whether you are part of an Enterprise Outlook mail server or stand alone. I experienced your issue as part of the former, also using Office 2010. This affected automated (Windows task scheduler) jobs that ran prior to my 'in office' day, both SAS jobs and also Microsoft Access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the SAS jobs, we needed to change the email configuration options so that the SMTP server was sending the emails. SAS:Communications:E-mail options settings as follows:&lt;/P&gt;&lt;P&gt;Emailauthprotocol NONE&lt;/P&gt;&lt;P&gt;Emailfrom 0&lt;/P&gt;&lt;P&gt;Emailhost This would be your SMTP server DNS&lt;/P&gt;&lt;P&gt;Emailid Enter your email address&lt;/P&gt;&lt;P&gt;Emailport 25&lt;/P&gt;&lt;P&gt;Emailcutoffset&lt;/P&gt;&lt;P&gt;Emaildlg NATIVE&lt;/P&gt;&lt;P&gt;Emailsys SMTP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Enterprise Outlook administrator may also need to specifically allow your workstation to use SMTP. The emails from SAS show your email in the FROM, but emails are not added to your SENT Items folder. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For Microsoft Access, we ended up installing a public domain security configuration tool called 'Click Yes' (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.contextmagic.com/?refid=cyproaboutdlg"&gt;http://www.contextmagic.com/?refid=cyproaboutdlg&lt;/A&gt;&lt;SPAN&gt;). &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 13:52:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/A-program-is-trying-to-send-an-email-on-your-behalf/m-p/192977#M266241</guid>
      <dc:creator>Harmoning</dc:creator>
      <dc:date>2015-01-30T13:52:33Z</dc:date>
    </item>
  </channel>
</rss>

