- Fix SafeMIMEText.set_payload() crash on Python 3.13 (#80).
- Add configuration key
MAIL_SEND_OPTIONS
to support settingmail_options
forsmtplib.SMTP.send_mail
(e.g.SMTPUTF8
) (#61). - Pre-encodes FQDN str with punycode to improve compatibility (#66).
- Migrates as many as possible test cases from Django mail module (#64).
- Improve way of populating smtp key/cert to avoid TypeError in py>=12 (#68).
- Drop Python 3.6 support.
- Fix compatibility issue with Python 3.10 (#31).
- Fix the log file generation issue to ensure that the log filename is random (#30).
- Fix compatibility issue with Python 3.12 (#56).
- Support passing
from_email
in tuple format tosend_mail()
function (#35).
- Add support for custom email backend.
- Tox and GitHub workflows to run test, staging and release automatically.
- Add support for Flask 2.0
- Drop support for Python 3.5(due to flask upgrade).
- Set
None
as the default value for thefrom_email
andrecipient_list
ofsend_mail()
function.
A few breaking changes have been made in this version to ensure that API of this extension is basically the same as Django. Users migrating from Flask-Mail should upgrade with caution.
- Add documentation site hosted in GitHub Pages.
- Set configuration value of in-memory backend to 'locmem'.
- Set MAIL_SERVER default value to 'locaohost'.
- Set MAIL_USE_LOCALTIME default value to False.
- Remove
Mail.send()
method andMessage()
class which borrowing from Flask-Mail. - Remove
mail_admins()
andmail_managers()
method that come from Django.