Skip to content

Commit

Permalink
Corrected MAIL_HOSTNAME to MAIL_SERVER in SMTP error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
lingthio committed Jul 28, 2015
1 parent 71a9513 commit 1bb3aa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_user/emails.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.')

Expand Down

0 comments on commit 1bb3aa3

Please sign in to comment.