03-29-2017 07:12 AM
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="email@example.com"
subject="testing the email interface"
ods html body=temp;
proc print data=sashelp.class;
ods html close;
Please let me know your sugegstions on this.
03-29-2017 07:26 AM
filename temp email to="firstname.lastname@example.org" subject="testing the email interface" type="text/html"; data _null_; file temp; put "this is a test"; run;
You may have to specify more email-related options, like emailport, emailid and emailpw.
03-29-2017 07:51 AM
03-29-2017 08:16 AM
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.