+1 vote

I use mail.dll to retrieve and send emails via gmail smtp with a vb.net app I created. Now that Google is eliminating the less-secure-app option. Is there another option? I tried the oauth route from a link on the limilabs site but it is out of date. Is there a better way? or better email provider?
Many thanks in advance.

by (250 points)
All articles were updated today so they are up-to-date.

1 Answer

0 votes

Use OAuth 2.0 - there are several flows depending on your scenario:

Web app:

Installed/desktop app:

Service account/daemon:

A simpler solution is to use App passwords:
Turn on 2-Step Verification for the account (required), then create an application specific password. You can find more details here:

by (295k points)
The "APPS" approach worked like a champ!  Thanks!