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.')