The SAS Output Delivery System and reporting techniques

Trying to send ODS output to mail body

Reply
Contributor
Posts: 35

Trying to send ODS output to mail body

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.

Super User
Posts: 7,431

Re: Trying to send ODS output to mail body

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.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Contributor
Posts: 35

Re: Trying to send ODS output to mail body

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..
Super User
Posts: 7,431

Re: Trying to send ODS output to mail body


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.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Ask a Question
Discussion stats
  • 3 replies
  • 167 views
  • 0 likes
  • 2 in conversation