×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
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:
[1]
https://stackabuse.com/how-to-send-emails-with-gmail-using-python/
I'm guessing the same would work for Flask-Mail by setting
MAIL_SERVER to smtp.gmail.com
MAIL_PORT to 465
MAIL_USE_TLS to True
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>
Cc:
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
accept
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
anything
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 ;
References
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.