BookmarkSubscribeRSS Feed
polingjw
Quartz | Level 8
When attempting to send an email via a SAS data step, we have one computer where the email message is sent to the user's Outlook 07 outbox instead of being immediately distributed to the intended recipients. When the program is executed on any of our other computers, the email message is sent immediately. Has anyone else encountered this issue? Is there some property that can be set in Outlook to control this behavior?

Thanks in advance for your assistance.
4 REPLIES 4
art297
Opal | Level 21
Have you checked, in Outlook (probably under tools->send/receive->send/receive settings) how often their Outlook is scheduled to automatically send and receive?

Art
twocanbazza
Quartz | Level 8
What is your code to send and your SAS email settings, as this will help to resolve for you
Doc_Duke
Rhodochrosite | Level 12
This is not an answer to your question, but an alternate solution. If you send the e-mail directly through your SMTP gateway you get the user's e-mail client out of the picture altogether.
polingjw
Quartz | Level 8
Many thanks to everyone who replied. Please forgive the lateness of my response.

@ Art: The Outlook automatic send/receive settings are not activated on the computer. I attempted changing this setting but it did not fix the problem.

@twocanbazza: Here are the SAS email settings.
Emailauthprotocol – None
Emailfrom-0
Emailhost - LOCALHOST
Emailid-
Emailport-25
Emaildlg - NATIVE
Emailsys – MAPI

The code used to send the email is very generic. Here is an outline of the code.

FILENAME MAIL EMAIL ‘ ’
TO=(‘email address’)
SUBJECT=’ subject of email’
ATTACH=(‘location of an attached CSV file’);
DATA _NULL_;
FILE MAIL;
PUT “some text contained in the body of the email”;
RUN;

@Doc: Thanks for the great suggestion. Unfortunately, my site will not allow me to use SMTP due to the requirement of setting the EMAILPW option.

Any other suggestions would be greatly appreciated. Thanks again.

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
  • 4 replies
  • 917 views
  • 0 likes
  • 4 in conversation