Need to enable 2 factor auth and app password on gmail.
Then you get a special one time only password for the app.
If you google gmail, app passwords and 2 factor there are how-to's out there.
Regards,
Richard Schoen
Web:
http://www.richardschoen.net
Email: richard@xxxxxxxxxxxxxxxxx
------------------------------
message: 5
date: Mon, 18 May 2020 22:34:44 +0000
from: "Kevin Adler" <kadler@xxxxxxxxxx>
subject: Re: [IBMiOSS] Send mail via a google account from python
I would also make sure you've told Python to enable TLS on the connection
as I don't believe Google supports unsecured authentication.
?
----- Original message -----
From: Jim Oberholtzer <midrangel@xxxxxxxxxxxxxxxxx>
Sent by: "OpenSource" <opensource-bounces@xxxxxxxxxxxxxxxxxx>
To: IBMi Open Source Roundtable <opensource@xxxxxxxxxxxxxxxxxx>
Cc:
Subject: [EXTERNAL] Re: [IBMiOSS] Send mail via a google account from
python
Date: Mon, May 18, 2020 5:24 PM
?
Thanks Kevin
The method you posted below is what I?m using, google tells the app to
go pound sand. ? I suspect the key is that app password portion of the
post you point out. ? I?ll try that in the AM. ?
The part that does cause me some pause is IBM i is happily sending email
with that account with no issues.
Jim Oberholtzer
Agile Technology Architects
As an Amazon Associate we earn from qualifying purchases.