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

 

Check out SAS Innovate on-demand content! Watch the main stage sessions, keynotes, and over 20 technical breakout sessions!

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

 

Check out SAS Innovate on-demand content! Watch the main stage sessions, keynotes, and over 20 technical breakout sessions!

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 2124 views
  • 8 likes
  • 4 in conversation