SMTP worker, Gmail, and oAuth
Joe Maus
jmaus at theccgllc.com
Mon Aug 19 20:29:59 UTC 2024
Hi,
So, when I use the SMTP worker and oAuth and I try to send an email to my other account from my gmail account, I get a login denied error from the gMail SMTP server. I wonder if my scope is wrong, I am using the scope from my HTML post worker which connects and sends email just fine. But I thought I'd try to migrate to the SMTP object for things like mail shot and the like. Anyway, the scope I'm using is:
/www.googleapis.com/auth/gmail.send <https://www.googleapis.com/auth/gmail.send>
And I can't really find any on-point documentation on what the scope ought to be when using the SMTP server approach over the HTML post path, but it seems like it should work. I think I have the oAuth configured correctly as the token is present in the object as expected and it has a valid expiry date, and as mentioned, it's working OK from the HTTP object.
The on-line documentation implies that user name and password might be required, but I would think using oAuth would supersede the need for user name and password. That and Goggle is going to not allow user name and password access to their services next month, so oAuth is the only way forward.
Any thoughts appreciated...
Kind regards,
Joe Maus
More information about the omnisdev-en
mailing list