BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
texasmfp
Lapis Lazuli | Level 10

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?

 

texasmfp_0-1645931428190.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisHemedinger
Community Manager

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" 
 )
;

 

Learn from the Experts! Check out the huge catalog of free sessions in the Ask the Expert webinar series.

View solution in original post

4 REPLIES 4
japelin
Rhodochrosite | Level 12

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

 

texasmfp
Lapis Lazuli | Level 10

How would you set up SAS's Email system options to use an App password rather than the ID and password?

SASKiwi
PROC Star

I'm pretty sure this would be an email client configuration and nothing to do with SAS.

ChrisHemedinger
Community Manager

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" 
 )
;

 

Learn from the Experts! Check out the huge catalog of free sessions in the Ask the Expert webinar series.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 4 replies
  • 2356 views
  • 8 likes
  • 4 in conversation