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

connection.py: do not send messages when mail.suppress is set #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

khorben
Copy link

@khorben khorben commented May 31, 2021

It seems to me that neither app.testing from Flask nor the MAIL_SUPPRESS_SEND configuration variable are ever enforced, even through the Mail.suppress class member. This patch should actually implement the behaviour expected as documented, actually preventing sending e-mails when they should not be sent.

@khorben khorben force-pushed the khorben/mail-suppress branch from 851cba9 to 4951113 Compare May 31, 2021 15:42
@khorben khorben changed the title mail.py: do not send messages when mail.suppress is set connection.py: do not send messages when mail.suppress is set May 31, 2021
@khorben khorben force-pushed the khorben/mail-suppress branch from 4951113 to 2eabfa3 Compare June 1, 2021 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant