In reply to Mark A Hinds.

Mark, I have two-factor auth set up on my Google account so I cannot test exactly the same way. But I did generate an App password per these instructions, and I was able successfully send email -- using my Gmail address -- in SAS OnDemand for Academics. This tells me that the SAS environment has all of the bits necessary to allow this to work.

The App password is a 16-character code that Google can generate for you and will work just like your password for Gmail. It must be managed carefully of course, as it does allow any client app to act "as you" on Gmail.