Awesome Open Source
Awesome Open Source

GmailAuthSMTP

This project is a very basic demo showing how to authenticate with OAUTH2 and send an email message for gmail as well as hotmail.com/outlook.com/live.com email addresses.

You will need to create a file called Globals.pas which contains the following constants

With some further work, this could be further improved to remove some of the required constants and improving some of the error handling.

At this stage, the refresh_tokens are retrieved in the authentication process - but are not saved. If these were saved, the process would not require a web browser everytime to authenticate.

Thanks

Geoffrey Smith


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Pascal (9,033
Authentication (3,909
Oauth2 (2,431
Delphi (1,255
Gmail (399
Outlook (207
Related Projects