Flask senden E -Mail -Google Mail
if __name__ == '__main__':
with app.app_context():
msg = Message(subject="Hello",
sender=app.config.get("MAIL_USERNAME"),
recipients=["<recipient email here>"], # replace with your email for testing
body="This is a test email I sent with Gmail and Python!")
mail.send(msg)
Mysterious Mosquito