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';
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.
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:
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!
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.