From 1bb3aa30384fa2003d1f1d5bb6979e63b37a151a Mon Sep 17 00:00:00 2001 From: Ling Thio Date: Tue, 28 Jul 2015 11:10:16 -0700 Subject: [PATCH] Corrected MAIL_HOSTNAME to MAIL_SERVER in SMTP error message. --- flask_user/emails.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask_user/emails.py b/flask_user/emails.py index 1bf066e6..9a744ec0 100644 --- a/flask_user/emails.py +++ b/flask_user/emails.py @@ -50,7 +50,7 @@ class SendEmailError(Exception): # Print helpful error messages on exceptions except (socket.gaierror, socket.error) as e: - raise SendEmailError('SMTP Connection error: Check your MAIL_HOSTNAME or MAIL_PORT settings.') + raise SendEmailError('SMTP Connection error: Check your MAIL_SERVER and MAIL_PORT settings.') except smtplib.SMTPAuthenticationError: raise SendEmailError('SMTP Authentication error: Check your MAIL_USERNAME and MAIL_PASSWORD settings.')