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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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