in reply to Using Gmail - making my application secure

Google calls all applications "insecure" that don't use its two-factor authentication.

If you want to keep using standards like IMAP and SMTP to access email with Gmail, you will have to put up with them calling this insecure.

  • Comment on Re: Using Gmail - making my application secure

Replies are listed 'Best First'.
Re^2: Using Gmail - making my application secure
by Arik123 (Beadle) on Aug 12, 2020 at 11:49 UTC

    Do you mean there's a way to send/receive mail via Gmail without using SMTP/IMAP?

      Yes, you'd have to use the google APIs to send the mssage which involves an OAuth login.

      Good Day,
          Dean

      You can set application specific passwords for applications to use SMTP. I suspect this applies to IMAP, but my success has varied in getting email this way due to rate limiting. A more reliable approach I've found is using fetchmail with gmail to get the mail. If you wish to send many emails (even with a "gmail" address), AWS' Simple Email Service (SES) has proven super reliabe for me and is super cheap.