summaryrefslogtreecommitdiff
path: root/django/core/mail/message.py
Commit message (Collapse)AuthorAgeFilesLines
* Updated documentation and comments for RFC updates.Nick Pope2022-11-101-3/+3
| | | | | | | | | | | | | | | - Updated references to RFC 1123 to RFC 5322 - Only partial as RFC 5322 sort of sub-references RFC 1123. - Updated references to RFC 2388 to RFC 7578 - Except RFC 2388 Section 5.3 which has no equivalent. - Updated references to RFC 2396 to RFC 3986 - Updated references to RFC 2616 to RFC 9110 - Updated references to RFC 3066 to RFC 5646 - Updated references to RFC 7230 to RFC 9112 - Updated references to RFC 7231 to RFC 9110 - Updated references to RFC 7232 to RFC 9110 - Updated references to RFC 7234 to RFC 9111 - Tidied up style of text when referring to RFC documents
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-79/+121
|
* Refs #32508 -- Raised Type/ValueError instead of using "assert" in django.core.Daniyal2021-03-191-5/+9
|
* Fixed #31784 -- Fixed crash when sending emails on Python 3.6.11+, 3.7.8+, ↵Florian Apolloner2020-07-201-4/+12
| | | | | | | | | | | | | | | and 3.8.4+. Fixed sending emails crash on email addresses with display names longer then 75 chars on Python 3.6.11+, 3.7.8+, and 3.8.4+. Wrapped display names were passed to email.headerregistry.Address() what caused raising an exception because address parts cannot contain CR or LF. See https://bugs.python.org/issue39073 Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Fixed E128, E741 flake8 warnings.Mariusz Felisiak2020-05-121-2/+2
|
* Corrected several typos in string literals and test names.Min ho Kim2019-08-071-1/+1
|
* Refs #30608 -- Added django.utils.encoding.punycode().Mariusz Felisiak2019-07-031-5/+2
|
* Fixed #30512 -- Used email.headerregistry.parser for parsing emails in ↵Joachim Jablon2019-06-131-45/+33
| | | | sanitize_address().
* Refs #27753 -- Favored force/smart_str() over force/smart_text().Aymeric Augustin2019-02-061-2/+2
|
* Fixed #29830 -- Fixed loss of custom utf-8 body encoding in mails.jannschu2018-10-221-1/+1
|
* Ref #23919 -- Replaced some os.path usage with pathlib.Path.Tom2018-04-191-5/+4
|
* Fixed hanging indentation in various code.Mariusz Felisiak2018-03-161-2/+1
|
* Fixed #29140 -- Fixed EmailMessage crash when body is None.Williams Mendez2018-02-201-1/+1
|
* Fixed #28996 -- Simplified some boolean constructs and removed trivial ↵Дилян Палаузов2018-01-121-3/+2
| | | | continue statements.
* Fixed #28982 -- Simplified code with and/or.Дилян Палаузов2018-01-031-5/+1
|
* Fixed #28912 -- Made EmailMessage.message() omit an empty To header.Jon Dufresne2017-12-301-2/+2
|
* Fixed #28971 -- Made EmailMessage.message() set Cc from headers dict if it ↵Jon Dufresne2017-12-301-4/+14
| | | | exists.
* Fixed #26344 -- Made EmailMessage include alternatives when the body is ↵Igor Tokarev2017-09-041-1/+1
| | | | empty and it has attachments.
* Replaced some map() and filter() calls with generators.Tom2017-05-271-2/+2
|
* Refs #28196 -- Removed mentions of bytestrings for EmailMessageClaude Paroz2017-05-141-8/+0
| | | | | With Python 3, there are no more reasons to special-case EmailMessage arguments which should be plain strings.
* Refs #27795 -- Replaced many force_text() with str()Claude Paroz2017-04-271-5/+5
| | | | Thanks Tim Graham for the review.
* Fixed #28042 -- Fixed crash when using a two-tuple in EmailMessage's ↵kalombo2017-04-071-1/+7
| | | | attachments arg.
* Fixed #27848 -- Prevented crash when attaching a .eml file to a messageClaude Paroz2017-04-011-1/+1
| | | | Thanks Sébastien Ramage for the report.
* Refs #27656 -- Updated django.core docstring verbs according to PEP 257.Anton Samarchyan2017-02-211-20/+17
|
* Refs #23919 -- Removed default 'utf-8' argument for str.encode()/decode().Tim Graham2017-02-091-2/+2
|
* Removed unneeded parentheses in class definitionsClaude Paroz2017-01-291-1/+1
|
* Refs #23919, #27778 -- Removed obsolete mentions of unicode.Vytis Banaitis2017-01-261-4/+4
|
* Refs #23919 -- Removed misc Python 2/3 references.Tim Graham2017-01-251-2/+2
|
* Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand2017-01-251-1/+1
|
* Refs #23919 -- Removed unneeded str() callsClaude Paroz2017-01-201-1/+1
|
* Fixed #23905, refs #23919 -- Used make_msgid() from stdlib.Tim Graham2017-01-191-32/+1
|
* Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette2017-01-191-1/+1
|
* Refs #23919 -- Removed most of remaining six usageClaude Paroz2017-01-181-3/+2
| | | | Thanks Tim Graham for the review.
* Refs #23919 -- Removed six.<various>_types usageClaude Paroz2017-01-181-5/+5
| | | | Thanks Tim Graham and Simon Charette for the reviews.
* Refs #23919 -- Removed six.PY2/PY3 usageClaude Paroz2017-01-181-31/+15
| | | | Thanks Tim Graham for the review.
* Refs #23919 -- Removed encoding preambles and future importsClaude Paroz2017-01-181-2/+0
|
* Fixed #27696 -- Measured email long lines on encoded contentClaude Paroz2017-01-061-1/+4
| | | | Thanks Pavel Pokrovskiy for the report and Tim Graham for the review.
* Fixed #27469 -- Prevented sending email to empty addressesClaude Paroz2016-11-101-1/+1
| | | | Thanks Jarek Glowacki for the report.
* Fixed #27333 -- Prevented BASE64 encoding in message.as_string() on Python 3Claude Paroz2016-10-121-20/+9
| | | | Thanks Tim Graham for the review.
* Fixed #27007 -- Handled non-UTF-8 bytes objects for text/* attachments.Michael Schwarz2016-08-121-28/+29
| | | | | | | | | | | | | | The fallback logic which allows non-UTF-8 encoded files to be passed to attach_file() even when a `text/*` mime type has been specified is moved to attach(). Both functions now fall back to a content type of `application/octet-stream`. A side effect is that a file's content is decoded in memory instead of opening it in text mode and reading it into a string. Some mimetype-related logic in _create_attachment() has become obsolete as the code moved from attach_file() to attach() already handles this.
* Fixed #26802 -- Prevented crash when attaching bytes as text messageClaude Paroz2016-07-081-2/+6
| | | | Thanks Tim Graham for the review.
* Fixed #12666 -- Added EMAIL_USE_LOCALTIME setting.Anton I. Sipos2016-06-041-1/+5
| | | | | When EMAIL_USE_LOCALTIME=True, send emails with a Date header in the local time zone.
* Fixed #26580 -- Updated references to obsolete RFC 2822.Vasiliy Faronov2016-05-101-1/+1
| | | | | Didn't rename django.utils.feedgenerator.rfc2822_date() as some external code may rely on it.
* Fixed #25986 -- Fixed crash sending email with non-ASCII in local part of ↵Sergei Maertens2016-05-061-9/+53
| | | | | | | | the address. On Python 3, sending emails failed for addresses containing non-ASCII characters due to the usage of the legacy Python email.utils.formataddr() function. This is fixed by using the proper Address object on Python 3.
* Fixed #22561 -- Prevented too long lines in email messagesClaude Paroz2016-04-191-1/+8
| | | | Thanks NotSqrt for the excellent report and Tim Graham for the review.
* Fixed E128 flake8 warnings in django/.Tim Graham2016-04-081-4/+3
|
* Fixed #24623 -- Fixed EmailMessage.attach_file() with text files on Python 3.Konrad Świat2015-07-251-3/+29
| | | | Thanks tkrapp for the report and Tim Graham for the review.
* Replaced six.BytesIO with io.BytesIOTim Graham2015-07-201-1/+2
|
* Removed support for Python 3.3.Tim Graham2015-06-181-8/+1
|
* Fixed #24416 -- Added support for lazy email addresses.medmunds2015-03-131-4/+4
|