Hi ,
I am trying to send ods output to my email body, but unfortunatly I am getting ERROR: Email: The connection was refused.
Below is my sample code.
options emailsys=smtp emailhost="xxxxx.net";
filename temp email to="prince.jvk@xxx.com"
subject="testing the email interface"
type="text/html";
ods html body=temp;
proc print data=sashelp.class;
run;
ods html close;
Please let me know your sugegstions on this.
Does
filename temp email to="prince.jvk@xxx.com"
subject="testing the email interface"
type="text/html";
data _null_;
file temp;
put "this is a test";
run;
work?
You may have to specify more email-related options, like emailport, emailid and emailpw.
@Banu wrote:
I have tried this way also..it's also giving same issue.
I suppose to send a mail to group of people ,in this case what password i needs to give here. Please let me know what other options i can give to execute this mail command..
You need to check that with the people who run the SMTP server. Or you consult the configuration of an email client that uses the same SMTP server for sending mail.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.