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

Add MAIL_SEND_OPTIONS for send_mail #61

Merged
merged 4 commits into from
Dec 16, 2023

Conversation

jingfelix
Copy link
Contributor

fixes #38

Flask-Mailman does not set mail_options when calling smtplib.SMTP.send_mail in backends/smtp.py#141. When using a non-ASCII mailbox, the mail might be rejected by server if unsupported.

Add a new configuration MAIL_SEND_OPTIONS for send_mail to resolve this issue.

Note that I leave CHANGELOG.md unchanged since I'm not sure whether a new release should be created, as the fix above is quite small.

classes

Signed-off-by: jingfelix <jingfelix@outlook.com>
Signed-off-by: jingfelix <jingfelix@outlook.com>
Copy link

codecov bot commented Nov 26, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e975ed5) 62.90% compared to head (1432559) 93.93%.
Report is 13 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master      #61       +/-   ##
===========================================
+ Coverage   62.90%   93.93%   +31.03%     
===========================================
  Files           9        9               
  Lines         585      594        +9     
===========================================
+ Hits          368      558      +190     
+ Misses        217       36      -181     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@greyli
Copy link
Collaborator

greyli commented Nov 27, 2023

It's necessary to update the changelog since this is a new feature and it makes it possible to use non-ascii mail addresses. Please also update the docs and add the unit test for this change. Thanks!

@jingfelix
Copy link
Contributor Author

Sorry for the delay, I will finish the improved part today.

jingfelix and others added 2 commits December 16, 2023 11:18
Signed-off-by: jingfelix <jingfelix@outlook.com>
@greyli greyli merged commit 1795715 into waynerv:master Dec 16, 2023
20 checks passed
@greyli
Copy link
Collaborator

greyli commented Dec 16, 2023

Merged, thanks! I made some small improvements to the changelog and code style (1432559).

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

Successfully merging this pull request may close these issues.

Please support Non-ASCII mailbox names (RFC 6530)
2 participants