BookmarkSubscribeRSS Feed
Pramod_R
Calcite | Level 5
Hi,

I have an issue while trying to email using the SAS program as given below:

filename sendmail email
to=("getpramod.r@gmial.com")
subject="File"
;
data _null_;
file sendmail;
put / "Hi";
run;

I get an error saying :

NOTE: The file SENDMAIL is:
E-Mail Access Device

ERROR: Email: The connection was refused.
NOTE: The SAS System stopped processing this step because of errors.

However, I'm able to send the email using the mailx command in the Unix command line.

Is there something that i neeed to enable in SAS.

Note: My SAS is running on AIX

Thanks in Advance!
Pramod
1 REPLY 1
Cynthia_sas
SAS Super FREQ
Hi:
There are several configuration options that must be set for the FILENAME EMAIL engine to work (such as EMAILSYS, EMAILHOST, EMAILPORT). The options can be found in the SAS Companion for the Unix operating system:
http://support.sas.com/documentation/cdl/en/hostunx/61879/PDF/default/hostunx.pdf

These Tech Support notes may be useful:
http://support.sas.com/kb/19/767.html
http://support.sas.com/kb/18/363.html

You may need to consult with your email administrators about the values for some of the settings or to have the settings added to the configuration file used by SAS.

cynthia

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 1 reply
  • 5771 views
  • 1 like
  • 2 in conversation