SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
Erockanderson
Calcite | Level 5

Hi.  I'm trying to configure the email options to send email through sendgrid.  It uses and API key.  Below are the options I have set, but I can only get SAS to respond with "ERROR: Login Failure" and "ERROR: Email server did not respond"

What do I need to tweak in the settings to get it to connect?

options
emailsys=SMTP
emailhost=("smtp.sendgrid.net" STARTTLS)
emailport=25
emailid="YXBpa2V5 <notices@bcservicescommercialcollections.com>"
EMAILAUTHPROTOCOL=login
EMAILPW='U0cuOHl0RlZVRHJRWXU2QTVSeUczelppUS4xFaRlZ2dXBpd3dZZG5J';

3 REPLIES 3
ChrisNZ
Tourmaline | Level 20
1. For your own sake, remove the credentials in your post

2. Did you see http://support.sas.com/kb/53/215.html ?
Erockanderson
Calcite | Level 5

Thanks for the reply.  The password is not correct in my post.
I did see that document.  I still cannot get it to work with the emailhost option.

ChrisNZ
Tourmaline | Level 20

I did see that document.  I still cannot get it to work with the emailhost option.

You haven't used to recommended syntax:

For SAS® 9.4, it is recommended that you use the EMAILHOST option to accomplish this step:

-emailhost ("smtp.gmail.com" STARTTLS id=gmail-login-ID pw=gmail-password auth=LOGIN port=587);

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 3 replies
  • 932 views
  • 0 likes
  • 2 in conversation