<?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 an email from SAS program in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851772#M336685</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/338236"&gt;@fja&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Well, here there seems to be a problem. Could be due to a principal misconfiguration or might be due to a side effect of some update ... as the change of the year is a popular day to change things in IT.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Year end/beginning is typically a time where there is a change freeze to not put year end processing at risk.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can set below options yourself at the start of your program.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1672612181135.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78968iE6889E42DD72787E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_0-1672612181135.png" alt="Patrick_0-1672612181135.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;"Any" email server will work that's accessible from where SAS executes. The SAS Admin on your site should be able to provide you the email server name and port if there is any. ...and ideally then also configures these values as default for the whole SAS environment so you don't have to define it in your code.&lt;/P&gt;</description>
    <pubDate>Sun, 01 Jan 2023 22:34:01 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2023-01-01T22:34:01Z</dc:date>
    <item>
      <title>send an email from SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851736#M336666</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I am running a code to send an email from SAS program.&lt;/P&gt;
&lt;P&gt;I get an error:&lt;/P&gt;
&lt;P&gt;ERROR: Email host smtprelay not found.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the way to solve it please?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/****Send Report via email***********/
/****Send Report via email***********/
/****Send Report via email***********/
FILENAME mail
EMAIL TO="&amp;lt;Dave.tein@gmail.com&amp;gt;"
CC=("Dave.tein@gmail.com","Dave.tein@gmail.com")
FROM='&amp;lt;Dave.tein@gmail.com&amp;gt;'
SUBJECT="Summary Data" 
CONTENT_TYPE="text/html" 
encoding="utf-8";
ODS LISTING CLOSE;
ODS HTML BODY=mail;

proc report data=sashelp.cars nowd noheader ;
run;

proc report data = SasHelp.Cars(obs = 5) split = "*";
column Type MPG_Ratio MPG_City MPG_Highway;
define Type / display ;
define MPG_City / display;
define MPG_Highway / display;
define MPG_Ratio / computed 'City/Highway' format = 4.2;
compute MPG_Highway;  
MPG_Ratio = MPG_City/MPG_Highway;
endcomp;
run;

ODS HTML CLOSE;
ODS LISTING;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here is the Log&lt;/P&gt;
&lt;PRE&gt;1                                                          The SAS System                              09:54 Sunday, January 1, 2023

1          ;*';*";*/;quit;run;
2          OPTIONS PAGENO=MIN;
3          %LET _CLIENTTASKLABEL='AAA';
4          %LET _CLIENTPROCESSFLOWNAME='Process Flow';
5          %LET _CLIENTPROJECTPATH='';
6          %LET _CLIENTPROJECTPATHHOST='';
7          %LET _CLIENTPROJECTNAME='';
8          %LET _SASPROGRAMFILE='K:\RON EINSTEIN\LEARN\AAA.sas';
9          %LET _SASPROGRAMFILEHOST='VSK2H010A3280';
10         
11         ODS _ALL_ CLOSE;
12         OPTIONS DEV=PNG;
13         GOPTIONS XPIXELS=0 YPIXELS=0;
14         FILENAME EGSR TEMP;
15         ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR
16             STYLE=HTMLBlue
17             STYLESHEET=(URL="file:///C:/Program%20Files/SASHome/SASEnterpriseGuide/7.1/Styles/HTMLBlue.css")
18             NOGTITLE
19             NOGFOOTNOTE
20             GPATH=&amp;amp;sasworklocation
21             ENCODING=UTF8
22             options(rolap="on")
23         ;
NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR
24         
25         GOPTIONS ACCESSIBLE;
26         
27         /****Send Report via email***********/
28         FILENAME mail
29         EMAIL TO="&amp;lt;Dave.tein@gmail.com&amp;gt;"
30         CC=("Dave.tein@gmail.com","Dave.tein@gmail.com")
31         FROM='&amp;lt;Dave.tein@gmail.com&amp;gt;'
32         SUBJECT="פאנל העמדות -פרטיים"
33         CONTENT_TYPE="text/html"
34         encoding="utf-8";
35         ODS LISTING CLOSE;
36         ODS HTML BODY=mail;
NOTE: Writing HTML Body file: MAIL
37         
38         proc report data=sashelp.cars nowd noheader ;
39         run;

NOTE: Multiple concurrent threads will be used to summarize data.
NOTE: There were 428 observations read from the data set SASHELP.CARS.
NOTE: PROCEDURE REPORT used (Total process time):
      real time           0.39 seconds
      user cpu time       0.38 seconds
      system cpu time     0.01 seconds
      memory              8210.00k
      OS Memory           41400.00k
      Timestamp           01/01/2023 01:51:11 PM
      Step Count                        582  Switch Count  1
      Page Faults                       0
      Page Reclaims                     1866
      Page Swaps                        0
      Voluntary Context Switches        23
      Involuntary Context Switches      1
      Block Input Operations            0
2                                                          The SAS System                              09:54 Sunday, January 1, 2023

      Block Output Operations           0
      

40         
41         proc report data = SasHelp.Cars(obs = 5) split = "*";
42         column Type MPG_Ratio MPG_City MPG_Highway;
43         define Type / display ;
44         define MPG_City / display;
45         define MPG_Highway / display;
46         define MPG_Ratio / computed 'City/Highway' format = 4.2;
47         compute MPG_Highway;
48         MPG_Ratio = MPG_City/MPG_Highway;
49         endcomp;
50         run;

NOTE: Multiple concurrent threads will be used to summarize data.
NOTE: There were 5 observations read from the data set SASHELP.CARS.
NOTE: PROCEDURE REPORT used (Total process time):
      real time           0.01 seconds
      user cpu time       0.01 seconds
      system cpu time     0.00 seconds
      memory              8334.50k
      OS Memory           43968.00k
      Timestamp           01/01/2023 01:51:11 PM
      Step Count                        583  Switch Count  1
      Page Faults                       0
      Page Reclaims                     1826
      Page Swaps                        0
      Voluntary Context Switches        35
      Involuntary Context Switches      0
      Block Input Operations            0
      Block Output Operations           0
      

51         
52         ODS HTML CLOSE;
ERROR: Email host smtprelay not found.
53         ODS LISTING;
54         
55         GOPTIONS NOACCESSIBLE;
56         %LET _CLIENTTASKLABEL=;
57         %LET _CLIENTPROCESSFLOWNAME=;
58         %LET _CLIENTPROJECTPATH=;
59         %LET _CLIENTPROJECTPATHHOST=;
60         %LET _CLIENTPROJECTNAME=;
61         %LET _SASPROGRAMFILE=;
62         %LET _SASPROGRAMFILEHOST=;
63         
64         ;*';*";*/;quit;run;
65         ODS _ALL_ CLOSE;
66         
67         
68         QUIT; RUN;
69         
&lt;/PRE&gt;</description>
      <pubDate>Sun, 01 Jan 2023 11:58:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851736#M336666</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2023-01-01T11:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: send an email from SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851738#M336667</link>
      <description>I guess, as I have never used this myself, you need to tell your system where to go for submitting the e-mail. &lt;BR /&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lepg/n0zm0f88y69dx8n142xs8zshda3v.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lepg/n0zm0f88y69dx8n142xs8zshda3v.htm&lt;/A&gt;&lt;BR /&gt;I think it is EMAILHOST= what you are looking for.</description>
      <pubDate>Sun, 01 Jan 2023 12:11:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851738#M336667</guid>
      <dc:creator>fja</dc:creator>
      <dc:date>2023-01-01T12:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: send an email from SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851739#M336668</link>
      <description>&lt;P&gt;I dont understand, may you modify my code and show me and I will check it?&lt;/P&gt;</description>
      <pubDate>Sun, 01 Jan 2023 12:24:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851739#M336668</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2023-01-01T12:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: send an email from SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851740#M336669</link>
      <description>&lt;P&gt;I can only try ... as I said, I have not used that before. What would be the email server you would like/can use? This depends on the OS settings (where the SAS system runs). If you do not know that you needed to have a chat with your admin.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Jan 2023 12:45:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851740#M336669</guid>
      <dc:creator>fja</dc:creator>
      <dc:date>2023-01-01T12:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: send an email from SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851741#M336670</link>
      <description>&lt;P&gt;SAS needs an smtp server to relay the message. The error indicates there is none.&lt;BR /&gt;You need the following statement at the beginning&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options 
  emailsys=smtp 
  emailhost= &amp;lt;your.smtpemail.server.com &amp;gt;
  emailport=&amp;lt;server port typically 25&amp;gt;;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;On server this typically set by the administrator.&lt;BR /&gt;The exact solution depends on whether you are having SAS on your PC/Laptop or whether it is running on the server.&lt;BR /&gt;If you have SAS locally installed on your machine then one feasible option will be to use either details from your ISP or email provider (google/outlook/yahoo etc). This reference helps for google&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/sasdummy/2013/07/31/gmail-from-sas-program/" target="_blank"&gt;https://blogs.sas.com/content/sasdummy/2013/07/31/gmail-from-sas-program/&lt;/A&gt; &lt;BR /&gt;The following are excellent references on the subject.&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-send-email-using-SAS/ta-p/746523" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-send-email-using-SAS/ta-p/746523&lt;/A&gt; &lt;BR /&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/hosto390/p0kgzksjepofk2n15jlvg9yd8a5r.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/hosto390/p0kgzksjepofk2n15jlvg9yd8a5r.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Jan 2023 12:49:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851741#M336670</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2023-01-01T12:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: send an email from SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851746#M336673</link>
      <description>&lt;P&gt;Thank you very much for the kb reference ... I guess that will be of great help! --fja&lt;/P&gt;</description>
      <pubDate>Sun, 01 Jan 2023 15:08:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851746#M336673</guid>
      <dc:creator>fja</dc:creator>
      <dc:date>2023-01-01T15:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: send an email from SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851747#M336674</link>
      <description>it is running on the server.&lt;BR /&gt;What should I write then?</description>
      <pubDate>Sun, 01 Jan 2023 15:22:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851747#M336674</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2023-01-01T15:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: send an email from SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851749#M336675</link>
      <description>&lt;P&gt;As I said, you need to have a notion what _smtp_ server to use. This actually depends on your system setup. Otherwise we could try to use an external smtp server (like the google thingy in the first link in&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/131732"&gt;@Sajid01&lt;/a&gt; 's posting above).&lt;/P&gt;</description>
      <pubDate>Sun, 01 Jan 2023 16:00:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851749#M336675</guid>
      <dc:creator>fja</dc:creator>
      <dc:date>2023-01-01T16:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: send an email from SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851753#M336678</link>
      <description>&lt;P&gt;Ask your SAS administrator whether your SAS installation has been setup to send email or not. Normally email settings are configured and tested at installation time so they should know what they are. If your SAS has never been configured to send email then it is really their responsibility to get it working.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT: Since you are getting an error regarding email host smtprelay that suggests there are some default email settings. Again talk to your SAS administrator regarding this error (once back from holiday).&lt;/P&gt;</description>
      <pubDate>Sun, 01 Jan 2023 19:58:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851753#M336678</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-01-01T19:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: send an email from SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851758#M336681</link>
      <description>Well, here there seems to be a problem. Could be due to a principal misconfiguration or might be due to a side effect of some update ... as the change of the year is a popular day to change things in IT.&lt;BR /&gt;</description>
      <pubDate>Sun, 01 Jan 2023 21:20:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851758#M336681</guid>
      <dc:creator>fja</dc:creator>
      <dc:date>2023-01-01T21:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: send an email from SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851772#M336685</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/338236"&gt;@fja&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Well, here there seems to be a problem. Could be due to a principal misconfiguration or might be due to a side effect of some update ... as the change of the year is a popular day to change things in IT.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Year end/beginning is typically a time where there is a change freeze to not put year end processing at risk.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can set below options yourself at the start of your program.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1672612181135.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78968iE6889E42DD72787E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_0-1672612181135.png" alt="Patrick_0-1672612181135.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;"Any" email server will work that's accessible from where SAS executes. The SAS Admin on your site should be able to provide you the email server name and port if there is any. ...and ideally then also configures these values as default for the whole SAS environment so you don't have to define it in your code.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Jan 2023 22:34:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851772#M336685</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-01-01T22:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: send an email from SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851774#M336687</link>
      <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;If SAS is running on the server, then the SAS Administrator (of somebody performing the SAS administration) is the first person you should speak to. Seniors/peers in your organization would also be helpful. Hopefully your issues will be resolved.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Jan 2023 22:53:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851774#M336687</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2023-01-01T22:53:20Z</dc:date>
    </item>
    <item>
      <title>Sending email from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851785#M336696</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;It is another topic that I open related to sending email from SAS .&lt;/P&gt;
&lt;P&gt;It is strange and I want to understand why it happens and how can I solve it.&lt;/P&gt;
&lt;P&gt;When I open SAS and create a simple program with short code of sending email then it is working 100% and I get the email.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; filename mymail email "Dave.Stein@gmail.com" subject="test message";
 data _null_;
 file mymail;
 put 'Hello there';
 run; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But when I add this short code to exisiting sas program with long code then I get an error&lt;/P&gt;
&lt;PRE&gt;ERROR: Email host &amp;lt; not found.&lt;/PRE&gt;
&lt;P&gt;Any idea why did it happen?&lt;/P&gt;
&lt;P&gt;Why in shirt program it works well and in long program not?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2023 05:43:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851785#M336696</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2023-01-02T05:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sending email from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851787#M336697</link>
      <description>&lt;P&gt;Talk to the sas admins, the email host needs to be configured. I don't think that those options can be changed in an active session.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2023 06:13:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851787#M336697</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2023-01-02T06:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: send an email from SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851788#M336695</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;wrote:
&lt;P class="1672643493085"&gt;&lt;SPAN&gt;Year end/beginning is typically a time where there is a change freeze to not put year end processing at risk.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;HR /&gt;
&lt;P&gt;Would not be too sure on that. It depends on the system and purpose ... i.e. if there is a dedicated year end processing.&lt;/P&gt;
&lt;P&gt;Nevertheless we all seem to agree on the actions to be taken ... let's see what&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;comes up with.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2023 07:15:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851788#M336695</guid>
      <dc:creator>fja</dc:creator>
      <dc:date>2023-01-02T07:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sending email from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851789#M336698</link>
      <description>&lt;P&gt;I do not fully understand your description. The code quoted does work if run on its own, but when merged with the code quoted above and run with that it does not? Is it that?&lt;/P&gt;
&lt;P&gt;If so ... could you check for differences in the smtp setup in both cases?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc options group=email; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Just to ensure that we are walking down the same road.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2023 08:00:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851789#M336698</guid>
      <dc:creator>fja</dc:creator>
      <dc:date>2023-01-02T08:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: send an email from SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851792#M336700</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I talked with admin and he gave me the hostmail&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;CODE class=" language-sas"&gt;smtp.tleumi&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;However&amp;nbsp;,now&amp;nbsp;I&amp;nbsp;get&amp;nbsp;another&amp;nbsp;error&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;ERROR: Email: 530 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM&lt;/P&gt;
&lt;P&gt;My questions:&lt;/P&gt;
&lt;P&gt;What does it mean?&lt;/P&gt;
&lt;P&gt;What is this error?&lt;/P&gt;
&lt;P&gt;How can I solve it?&lt;BR /&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options 
  emailsys=smtp 
  emailhost=smtp.tleumi
  emailport=25;

OPTIONS EMAILSYS  = SMTP;
FILENAME mail
EMAIL TO="Dave.Stein@gmail.coml"
FROM='Dave.Stein@gmail.coml'
SUBJECT="XXXXXX" 
CONTENT_TYPE="text/html" 
encoding="utf-8";
ODS LISTING CLOSE;
ODS HTML BODY=mail;

proc report data=sashelp.cars ;
run;

ODS HTML CLOSE;
ODS LISTING;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Please see the Log&lt;/P&gt;
&lt;PRE&gt;1                                                          The SAS System                              09:54 Sunday, January 1, 2023

1          ;*';*";*/;quit;run;
2          OPTIONS PAGENO=MIN;
3          %LET _CLIENTTASKLABEL='AAA';
4          %LET _CLIENTPROCESSFLOWNAME='Process Flow';
5          %LET _CLIENTPROJECTPATH='';
6          %LET _CLIENTPROJECTPATHHOST='';
7          %LET _CLIENTPROJECTNAME='';
8          %LET _SASPROGRAMFILE='K:\RON EINSTEIN\LEARN\AAA.sas';
9          %LET _SASPROGRAMFILEHOST='VSK2H010A3280';
10         
11         ODS _ALL_ CLOSE;
12         OPTIONS DEV=PNG;
13         GOPTIONS XPIXELS=0 YPIXELS=0;
14         FILENAME EGSR TEMP;
15         ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR
16             STYLE=HTMLBlue
17             STYLESHEET=(URL="file:///C:/Program%20Files/SASHome/SASEnterpriseGuide/7.1/Styles/HTMLBlue.css")
18             NOGTITLE
19             NOGFOOTNOTE
20             GPATH=&amp;amp;sasworklocation
21             ENCODING=UTF8
22             options(rolap="on")
23         ;
NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR
24         
25         GOPTIONS ACCESSIBLE;
26         
27         options
28           emailsys=smtp
29           emailhost=smtp.tleumi
30           emailport=25;
31         OPTIONS EMAILSYS  = SMTP;
32         FILENAME mail
33         EMAIL TO="Dave.Stein@gmail.coml"
34         FROM='Dave.Stein@gmail.coml'
35         SUBJECT="XXXXXX"
36         CONTENT_TYPE="text/html"
37         encoding="utf-8";
38         ODS LISTING CLOSE;
39         ODS HTML BODY=mail;
NOTE: Writing HTML Body file: MAIL
40         proc report data=sashelp.cars ;
41         run;

NOTE: Multiple concurrent threads will be used to summarize data.
NOTE: There were 428 observations read from the data set SASHELP.CARS.
NOTE: PROCEDURE REPORT used (Total process time):
      real time           0.43 seconds
      user cpu time       0.40 seconds
      system cpu time     0.01 seconds
      memory              8228.96k
      OS Memory           41400.00k
      Timestamp           01/02/2023 09:50:01 AM
      Step Count                        605  Switch Count  1
      Page Faults                       0
      Page Reclaims                     1896
      Page Swaps                        0
      Voluntary Context Switches        31
2                                                          The SAS System                              09:54 Sunday, January 1, 2023

      Involuntary Context Switches      1
      Block Input Operations            0
      Block Output Operations           0
      

42         ODS HTML CLOSE;
ERROR: Email: 530 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM
43         ODS LISTING;
44         
45         GOPTIONS NOACCESSIBLE;
46         %LET _CLIENTTASKLABEL=;
47         %LET _CLIENTPROCESSFLOWNAME=;
48         %LET _CLIENTPROJECTPATH=;
49         %LET _CLIENTPROJECTPATHHOST=;
50         %LET _CLIENTPROJECTNAME=;
51         %LET _SASPROGRAMFILE=;
52         %LET _SASPROGRAMFILEHOST=;
53         
54         ;*';*";*/;quit;run;
55         ODS _ALL_ CLOSE;
56         
57         
58         QUIT; RUN;
59         
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2023 07:51:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851792#M336700</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2023-01-02T07:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: send an email from SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851793#M336701</link>
      <description>&lt;P&gt;You most probably need to also supply a username and password to authenticate on your SMTP server.&lt;/P&gt;
&lt;P&gt;Scan the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lesysoptsref/p1tmgku1vq7pwqn1iqioeflxgec1.htm" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt; for the EMAIL... options to see how to supply your credentials to the SAS system.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2023 08:05:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851793#M336701</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-01-02T08:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: send an email from SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851799#M336706</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;wrote:
&lt;P&gt;I talked with admin and he gave me the hostmail&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;CODE class=" language-sas"&gt;smtp.tleumi&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;However&amp;nbsp;,now&amp;nbsp;I&amp;nbsp;get&amp;nbsp;another&amp;nbsp;error&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;ERROR: Email: 530 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM&lt;/P&gt;
&lt;P&gt;My questions:&lt;/P&gt;
&lt;P&gt;What does it mean?&lt;/P&gt;
&lt;P&gt;What is this error?&lt;/P&gt;
&lt;P&gt;How can I solve it?&lt;BR /&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You are on the right track now! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What you need, as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;has already indicated, is to check with your admin what credentials are needed on the smtp server ... and than one needs to fiddle that into the email options according to the documentation. But I am sure we can workt that out. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2023 08:34:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851799#M336706</guid>
      <dc:creator>fja</dc:creator>
      <dc:date>2023-01-02T08:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sending email from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851801#M336707</link>
      <description>Admin sent me again the true Host mail and it is working 100%&lt;BR /&gt;thank you all!!</description>
      <pubDate>Mon, 02 Jan 2023 09:44:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/send-an-email-from-SAS-program/m-p/851801#M336707</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2023-01-02T09:44:14Z</dc:date>
    </item>
  </channel>
</rss>

