flask-mailing icon indicating copy to clipboard operation
flask-mailing copied to clipboard

Cannot leave MAIL_USERNAME and MAIL_PASSWORD unset

Open misilot opened this issue 3 years ago • 1 comments
trafficstars

Hello,

It is very common that you don't need to authenticate to your mail server when using a smart/relay host setup. However, when I try to leave them unset I get the following error.

MAIL_USERNAME none is not an allowed value (type=type_error.none.not_allowed) MAIL_PASSWORD none is not an allowed value (type=type_error.none.not_allowed)

misilot avatar Nov 07 '22 20:11 misilot

You can set them to an empty string and use USE_CREDENTIALS = false

m4skedbyte avatar Oct 18 '23 11:10 m4skedbyte