Use mail sender as username

This commit is contained in:
richard-dds 2018-10-16 14:09:02 -04:00
parent 408fe5dc54
commit 79c3394e2c

View File

@ -180,6 +180,7 @@ def make_mailer(app):
mailer_connection = mailer.SMTPConnection( mailer_connection = mailer.SMTPConnection(
server=app.config.get("MAIL_SERVER"), server=app.config.get("MAIL_SERVER"),
port=app.config.get("MAIL_PORT"), port=app.config.get("MAIL_PORT"),
username=app.config.get("MAIL_SENDER"),
password=app.config.get("MAIL_PASSWORD"), password=app.config.get("MAIL_PASSWORD"),
use_tls=app.config.get("MAIL_TLS") use_tls=app.config.get("MAIL_TLS")
) )