While learning how to set up SAS to send an email, I had to enable GMAIL to allow less secure, 3rd party access. There is the following note that suggests this avenue will close in a few months. What email client alternatives exist outside of the Gmail SMTP server used by Thunderbird or other clients?
Use an App password instead. You need to enable your Gmail for 2-factor auth first (which you should do anyway). Then use the App password like you would any SMTP password.
options emailhost=
(
"smtp.gmail.com"
/* alternate: port=487 SSL */
port=587 STARTTLS
auth=plain
/* your Gmail address */
id="your_address@gmail.com"
/* optional: encode PW with PROC PWENCODE */
pw="your_app_password"
)
;
I don't think this is relevant to SAS too much, so I'll be brief.
Instead of using a username/password combination, why not use an app password?
https://support.google.com/mail/answer/185833?hl=en
How would you set up SAS's Email system options to use an App password rather than the ID and password?
I'm pretty sure this would be an email client configuration and nothing to do with SAS.
Use an App password instead. You need to enable your Gmail for 2-factor auth first (which you should do anyway). Then use the App password like you would any SMTP password.
options emailhost=
(
"smtp.gmail.com"
/* alternate: port=487 SSL */
port=587 STARTTLS
auth=plain
/* your Gmail address */
id="your_address@gmail.com"
/* optional: encode PW with PROC PWENCODE */
pw="your_app_password"
)
;
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.