http://www.perlmonks.org?node_id=11120651


in reply to Re: Using Gmail - making my application secure
in thread Using Gmail - making my application secure

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

Replies are listed 'Best First'.
Re^3: Using Gmail - making my application secure
by duelafn (Parson) on Aug 12, 2020 at 16:51 UTC

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

    Good Day,
        Dean

Re^3: Using Gmail - making my application secure
by perlfan (Vicar) on Aug 12, 2020 at 15:27 UTC
    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.