Configure Flask-Mail to use GMail

The server is “smtp.gmail.com”. The port must match the type of security used. If using STARTTLS with MAIL_USE_TLS = True, then use MAIL_PORT = 587. If using SSL/TLS directly with MAIL_USE_SSL = True, then use MAIL_PORT = 465. Enable either STARTTLS or SSL/TLS, not both. Depending on your Google account’s security settings, you may need … Read more