summaryrefslogtreecommitdiff
path: root/django/core/mail
AgeCommit message (Collapse)Author
2016-05-10Fixed #26580 -- Updated references to obsolete RFC 2822.Vasiliy Faronov
Didn't rename django.utils.feedgenerator.rfc2822_date() as some external code may rely on it.
2016-05-06Fixed #25986 -- Fixed crash sending email with non-ASCII in local part of ↵Sergei Maertens
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.
2016-04-19Fixed #22561 -- Prevented too long lines in email messagesClaude Paroz
Thanks NotSqrt for the excellent report and Tim Graham for the review.
2016-04-08Fixed E128 flake8 warnings in django/.Tim Graham
2015-07-25Fixed #24623 -- Fixed EmailMessage.attach_file() with text files on Python 3.Konrad Świat
Thanks tkrapp for the report and Tim Graham for the review.
2015-07-20Replaced six.BytesIO with io.BytesIOTim Graham
2015-06-27Sorted imports in __init__.py files.Tim Graham
2015-06-18Removed support for Python 3.3.Tim Graham
2015-03-13Fixed #24416 -- Added support for lazy email addresses.medmunds
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-01-17Removed compatibility with Python 3.2.Tim Graham
2014-11-28Fixed #23910 -- Added reply_to parameter to EmailMessageMartin Blech
Thanks to Berker Peksag and Tim Graham for the review and suggestions.
2014-11-27Fixed #23924 -- Made EmailMessage raise TypeError for type checksMartin Blech
2014-11-24Removed workaround for lack of os.getpid() in Jython.Tim Graham
The Jython bug was fixed in http://bugs.jython.org/issue1518 (tested on Jython 2.7b3); also updated make_msgid() to be more like the version in Python 3.2+; refs #23905. Thanks Simon Charette for testing and review.
2014-11-24Fixed #13694 -- Made SafeMIMEText's constructor compatible with MIMEText.Berker Peksag
2014-10-12Fixed #23063 -- Convert \n and \r to \r\n when using the SMTP backend as per ↵Florian Apolloner
RFC.
2014-09-29Replaced set([foo, ...]) by {foo, ...} literals. Refs PR 3282.Thomas Chaumeny
Thanks Collin Anderson for the review.
2014-09-27Updated comment about Python issueClaude Paroz
2014-09-13Fixed #23461 -- Added EMAIL_TIMEOUT settingJosé Padilla
2014-09-10Fixed #20743 -- Added support for keyfile/certfile in SMTP connections.Andi Albrecht
Thanks jwmayfield, serg.partizan, and Wojciech Banaś for work on the patch.
2014-09-05Limited lines to 119 characters in django/Tim Graham
refs #23395.
2014-05-28Fixed several typos in DjangoAlex Gaynor
2014-03-31Fixed #22327 -- Turned BaseEmailBackend into a context managerDaniel Neuhäuser
Changed the BaseEmailBackend to allow usage as context manager to open and close connections.
2014-02-08Fixed #21674 -- Deprecated the import_by_path() function in favor of ↵Berker Peksag
import_string(). Thanks Aymeric Augustin for the suggestion and review.
2014-01-12Undelete the `return True` removed in 4e0a2fe.Marc Tamlyn
This is quite important otherwise we don't close our connections to the SMTP server.
2013-12-30Decode mails using the message encoding.Florian Apolloner
2013-12-30Changed console and filebackend to use msg.as_bytes to output the data as it ↵Florian Apolloner
would get send via smtp.
2013-12-28Introduced as_bytes for SafeMIMEText (and other SafeMIME-classes).Florian Apolloner
This is to provide a consistent interface (namely bytes) for the smtp backend which after all sends bytes over the wire; encoding with as_string yields different results since mails as unicode are not really specified. as_string stays for backwardscompatibilty mostly and some debug outputs. But keep in mind that the output doesn't match as_bytes!
2013-12-28Worked around a bug in python 3.3.3. Refs #21093Florian Apolloner
2013-12-28Fixed #21093 -- Ensured that mails are not base64 encoded on python 3.3.3+.Florian Apolloner
Thanks to Arfrever for the report and Aymeric for the review.
2013-11-02More attacking E302 violatorsAlex Gaynor
2013-11-02Fixed #21302 -- Fixed unused imports and import *.Tim Graham
2013-10-25Undelete the login() call inadvertantly removed in 4e0a2fe59cClaude Paroz
Refs #21271.
2013-10-24Fixed #21271 -- Added timeout parameter to SMTP EmailBackend.SusanTan
Thanks Tobias McNulty and Tim Graham for discussions and code review. Thanks Andre Cruz the suggestion and initial patch.
2013-10-24Start attacking E231 violationsAlex Gaynor
2013-10-10Whitespace cleanup.Tim Graham
* Removed trailing whitespace. * Added newline to EOF if missing. * Removed blank lines at EOF. * Removed some stray tabs.
2013-10-10Used "is" for comparisons with None.Tim Graham
2013-10-05Fixed #21189: Cleaned up usage of bare except clauses.Baptiste Mispelon
Thanks to berkerpeksag for the report and to claudep for the review.
2013-09-10Fixed #20841 -- Added messages to NotImplementedErrorsGregor MacGregor
Thanks joseph at vertstudios.com for the suggestion.
2013-09-02Replaced "not PY3" by "PY2", new in six 1.4.0.Aymeric Augustin
2013-08-21Fixed #12422 -- Don't override global email charset behavior for utf-8.Ramiro Morales
Thanks simonb for the report, Claude Paroz and Susan Tan for their work on a fix.
2013-08-20Fixed #18967 -- Don't base64-encode message/rfc822 attachments.Ramiro Morales
Thanks Michael Farrell for the report and his work on the fix.
2013-07-29Fixed #20817 -- Added html_message parameter to django.core.mail.send_mail()Justin Michalicek
2013-07-14Fixed #20746 -- Removed Python 2.6 specific code/docsTim Graham
2013-07-11Fixed #17471 -- Added smtplib.SMTP_SSL connection option for SMTP backendClaude Paroz
Thanks dj.facebook at gmail.com for the report and initial patch and Areski Belaid and senko for improvements.
2013-04-03Adds generators support for email backends that do not support it.Brendon Crawford
2013-02-04Fixed #17061 -- Factored out importing object from a dotted pathClaude Paroz
Thanks Carl Meyer for the report.
2013-01-03Replaced deprecated sslerror by ssl.SSLErrorClaude Paroz
The exact conditions on which this exception is raised are not known, but this replacement is the best guess we can do at this point.
2013-01-03Fixed #19382 -- Stopped smtp backend raising exception when already closedClaude Paroz
Thanks Sebastian Noack for the report and the initial patch.
2013-01-03Fixed #19134 -- Allowed closing smtp backend when the server is stoppedClaude Paroz
Thanks Sebastian Noack for the report and the initial patch.