IIRC, the only tricky thing you need is to get an APP password for the
account you're using.
This article shows how to do it using pure Python:
I'm guessing the same would work for Flask-Mail by setting
MAIL_SERVER to smtp.gmail.com
MAIL_PORT to 465
MAIL_USERNAME to your gmail address
MAIL_PASSWORD to your app password

----- Original message -----
From: <midrangel@xxxxxxxxxxxxxxxxx>
Sent by: "OpenSource" <opensource-bounces@xxxxxxxxxxxxxxxxxx>
To: "'IBMi Open Source Roundtable'" <opensource@xxxxxxxxxxxxxxxxxx>
Subject: [EXTERNAL] [IBMiOSS] Send mail via a google account from python
Date: Mon, May 18, 2020 4:18 PM
So, what is the magic elixir needed to get a valid google account to
an email from Python (with flask-mail) and send it out?


Lots of 2 year old discussions on the internet, but I've not seen
recent enough (over two years old) to pay attention to.



Jim Oberholtzer

Agile Technology Architects


This is the IBMi Open Source Roundtable (OpenSource) mailing list
To post a message email: OpenSource@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: [2]https://lists.midrange.com/mailman/listinfo/opensource ;
or email: OpenSource-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at [3]https://archive.midrange.com/opensource ;.

Help support midrange.com by shopping at amazon.com with our affiliate
link: [4]https://amazon.midrange.com ;



Visible links
1. https://stackabuse.com/how-to-send-emails-with-gmail-using-python/
2. https://lists.midrange.com/mailman/listinfo/opensource
3. https://archive.midrange.com/opensource
4. https://amazon.midrange.com/

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.