BookmarkSubscribeRSS Feed
elsga
Calcite | Level 5

I am sending an email from SAS within an rsubmit.  Unfortunately, the receivers email contains an ampersand and is not receiving the email even though the log has no errors.  Any recommendations?

 

rsubmit;
filename mymail email
to='send&email@somewhere.com'
subject="test email";
data _null_;
file mymail;
put "This is a test";
run;
endrsubmit;

3 REPLIES 3
Cynthia_sas
SAS Super FREQ

Hi:
This may be a question for Tech Support. A few questions that may help you debug the issue:
1) if you send a single email from your system to the receivers system (not using a program -- just using the COMPOSE function of your email system), do they get the email?
2) has the receiver checked their mail application to see whether the programmatically sent mail was misdirected to their junk or spam folder?
3) if you send mail from your program to an address that does NOT contain an ampersand, does the receiver get this mail?
4) Are you sure that all of your system options related to email are correct?

Other than running those tests to get some more context on the scope of the issue, I think your best option for resolving this is for you to open a track with SAS Tech Support.
Cynthia

ChrisHemedinger
Community Manager

I think that there are several systems that have problems processing an email address with an ampersand. In this case the problem could be SAS or your email SMTP server.

 

Usually such addresses are actually aliases for another address that won't have the special character. Any chance that your recipient can supply you with that?

Sajid01
Meteorite | Level 14

This depends on the policy of the outgoing mail server and the mail server at the receiving end.
So more than the SAS code it is the mail server policy. As a first step consult your outgoing mail server administrator.

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 3 replies
  • 213 views
  • 0 likes
  • 4 in conversation