Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mail from must equal authorized user? #540

Open
liuende501 opened this issue Sep 17, 2022 · 2 comments
Open

Mail from must equal authorized user? #540

liuende501 opened this issue Sep 17, 2022 · 2 comments
Labels

Comments

@liuende501
Copy link

FLASKY_MAIL_SENDER is Flasky Admin <[email protected]> in project. If i use my email address, then throw a exception like

smtplib.SMTPSenderRefused: (553, b'Mail from must equal authorized user', '=?utf-8?q?Flasky_Admin?= <[email protected]>')

a simple advice, set FLASKY_MAIL_SENDER like

FLASKY_MAIL_SENDER = os.environ.get('FLASKY_MAIL_SENDER', 'Flasky Admin [email protected]')

@miguelgrinberg
Copy link
Owner

This is not a requirement of this application, it is your email server that is enforcing this and not letting you put any user in the From field of the email.

@liuende501
Copy link
Author

liuende501 commented Sep 18, 2022

I tried two type of Email that are very popular in China, QQ and 126, all throw exception.
Maybe the email server in China all have this restrict.

Thank you for your reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants