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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1470 views
  • 0 likes
  • 4 in conversation