BookmarkSubscribeRSS Feed
Banu
Obsidian | Level 7

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.

3 REPLIES 3
Kurt_Bremser
Super User

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
Obsidian | Level 7
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..
Kurt_Bremser
Super User

@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.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 847 views
  • 0 likes
  • 2 in conversation