Just looked at the stackoverflow post — there are 3 updates with respect to
needing to reauthenticate.

Basically, you use the ‘AUTH XOATH base64 oathtoken’ command, after the
EHLO command.

the weird part seems to be the ehlo command is repeated twice — before
STARTTLS, and after.

g


On Sun, Mar 22, 2020 at 8:18 AM ToddAndMargo via perl6-users <
perl6-us...@perl.org> wrote:

> On 2020-03-21 22:56, Peter Scott wrote:
> > On 3/21/20 2:20 PM, ToddAndMargo via perl6-users wrote:
> >> On 2020-03-18 18:42, ToddAndMargo via perl6-users wrote:
> >>> This is a long shot, but have any of you figured out
> >>> how to send eMail through G-Mail with OAuth2?
> >>>
> >>> I have a module that uses cURL, but I can't figure
> >>> out how to get it to work with OAuth2.
> >>>
> >>> RFE: please support OAuth2
> >>> https://github.com/retupmoca/P6-Net-SMTP/issues/24
> >>>
> >>> Is in the works, but I need to get something going
> >>> by June 2020 as s-suite will stop supporting
> >>> Less Secure Apps at that time.
> >>
> >> Found this:
> >>
> >> python & smtplib: Is sending mail via gmail using oauth2 possible?
> >>
> >>
> https://stackoverflow.com/questions/11445523/python-smtplib-is-sending-mail-via-gmail-using-oauth2-possible
> >>
> >>
> >> But it is python we doh't have anything equivalent to
> >>     import oauth2 as oauth
> >>     import oauth2.clients.imap as imaplib
> >
> > I am in almost exactly the same situation. I don't need to send mail,
> > but I do need to read Gmail through IMAP and rename folders and move
> > messages.  I am under the same deadline and have done extensive research
> > without getting anywhere.  The documentation and online Q&A do not get
> > me very far.
>
> You may wish to sign up for this RFE/Bug I posted:
>
> RFE: please support OAuth
> https://github.com/retupmoca/P6-Net-SMTP/issues/24
>

Reply via email to