GmailAuthSMTP
GmailAuthSMTP copied to clipboard
Supporting other scopes for GMail
First off - great work on this, works like a charm with the included scope - but just might raise some eyebrows as it requires read and delete access to email.
Advice to others compiling on Delphi 10.1, add IPPeerClient to the uses clause, and cast TIdBytes to TBytes on the logging routines.
Any chance someone can help me with changing the scope to a more restricted scope - ie. gmail.send or gmail.compose?
ie. https://www.googleapis.com/auth/gmail.send
Listed here: [(https://developers.google.com/gmail/api/auth/scopes)]
These are all the rights that should be required for sending email, but if I try to apply that to the scope, it has an error saying issue with username/password which I think is just a general rights error really.