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"
)
;
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.