Changes¶
Version 0.10.0¶
Released 2024-05-23
Drop support for Python < 3.8.
Use
pyproject.tomlfor packaging metadata.Use
flit_coreas build backend.Apply code formatting and linting tools.
Add static type annotations.
Deprecate the
__version__attribute. Use feature detection orimportlib.metadata.version("flask-mail")instead.Indicate that the deprecated
is_bad_headerswill be removed in the next version.Fix the
email_dispatchedsignal to pass the current app as the sender andmessageas an argument, rather than the other way around.Attachment.datamay not beNone.Attachment.content_typewill be detected based onfilenameanddataand will not beNone.
Version 0.9.1¶
Released 2014-09-28
Add an option for force ASCII file attachments
Fix
force_textfunctionFix some Python 3 support regarding email policy.
Support ESMTP options.
Fix various Unicode issues related to message attachments, subjects, and email addresses.
Version 0.9.0¶
Released 2013-06-14
Add initial Python 3 support.
Version 0.8.2¶
Released 2013-04-11
Remove stray
printstatement.
Version 0.8.1¶
Released 2013-04-04
Fix a bug with the new state object.
Version 0.8.0¶
Released 2013-04-03
Fix a bug with duplicate recipients.
Change configuration options to be less confusing. Update settings accordin ly:
DEFAULT_MAIL_SENDERis nowMAIL_DEFAULT_SENDER.DEFAULT_MAX_EMAILSis nowMAIL_MAX_EMAILS.MAIL_FAIL_SILENTLYis no longer used.MAIL_SUPPRESS_SENDnow defaults toTESTINGsetting value.
General API cleanup as things were happening in a few different places.
Version 0.7.6¶
Released 2013-03-11
Fix bug with cc, and bcc fields not being lists.
Version 0.7.5¶
Released 2013-03-03
Fix bug with non-ascii characters in email address.
MAIL_FAIL_SILENTLYconfig value defaults toFalse.Bcc header no longer set as some mail servers forward it to the recipient.
Version 0.7.4¶
Released 2012-11-20
Allow messages to be sent without a body.
Version 0.7.3¶
Released 2012-09-27
Add
extra_headerstoMessageclass.
Version 0.7.2¶
Released 2012-09-16
Add
__str__method toMessageclass.Add message character set option which defaults to utf-8.
Version 0.7.1¶
Released 2012-09-05
Date and message ID headers specified.
Version 0.7.0¶
Released 2012-08-29
Initial development by Dan Jacob and Ron DuPlain. Previously there was not a change log.