summaryrefslogtreecommitdiff
path: root/django/core/mail.py
AgeCommit message (Collapse)Author
2009-11-03Fixed #10355 -- Added an API for pluggable e-mail backends.Russell Keith-Magee
Thanks to Andi Albrecht for his work on this patch, and to everyone else that contributed during design and development. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11709 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-06-12Fixed #9367 - EmailMultiAlternatives does not properly handle attachments.Luke Plant
Thanks to Loek Engels for the bulk of the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10983 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-02-16Fixed #9214: EmailMessage now respects the From header instead of blindly ↵Jacob Kaplan-Moss
using from_email. Thanks, Tai Lee. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9842 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-24Fixed #9383 -- Don't open a network connection for sending email if there'sMalcolm Tredinnick
nothing to send. Saves a bit of time when, for example, processing 500-error emails with no ADMINs configured. Based on a patch from Jesse Young. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9248 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-07Fixed #9233 -- Allow date and message-id headers to be passed in manually inMalcolm Tredinnick
email messages. Previously we were creating duplicate headers, which was bad. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9197 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-23Fixed #7747: Altered EmailMessage such that messages with long subject lines ↵Russell Keith-Magee
don't use tabs in their continutation sequence. Tabs in subjects cause problems with Outlook and Thunderbird. Thanks to Mark Allison <mark.allison@maplecroft.com> for the report and fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8483 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-26Fixed #7966 -- Send email if it has "bcc" recipients and no "to" recipients.Malcolm Tredinnick
Patch from Zal. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8086 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-26Fixed #7574 -- Fixed the handling of lazy translation in email headers.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8083 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-08Fixed #7655 -- Added two assertions to mail.py to help people debug a common ↵Adrian Holovaty
problem (sending strings instead of lists/tuples for 'to' or 'bcc'). Thanks, guettli git-svn-id: http://code.djangoproject.com/svn/django/trunk@7864 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-21Fixed some styling issues in `django/core/mail.py`.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7350 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-21Noted an additional modification we have made to `make_msgid`.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7349 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-21Fixed #6835 -- Use cached FQDN when creating `smtplib.SMTP()` connection to ↵Gary Wilson Jr
avoid a lengthy `socket.getfqdn()` call, thanks George Murdocca and PhiR. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7348 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-21Fixed #6841 -- Don't include bcc recepients in e-mail headers, thanks PhiR.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7347 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-29Updated a docstring on a couple of email functions to stop the complaints.Malcolm Tredinnick
It's deprecated for internal use, but the functions still exist. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7183 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-02Fixed #6299 -- Fixed an indentation error in django/core/mail.py introduced ↵Adrian Holovaty
in [6987] git-svn-id: http://code.djangoproject.com/svn/django/trunk@6989 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-02Fixed #5887 -- Consolidated some duplicate code in SafeMIMEText and ↵Adrian Holovaty
SafeMIMEMultipart. Thanks, Carl Karsten git-svn-id: http://code.djangoproject.com/svn/django/trunk@6987 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-19Fixed #6139 -- When sending email, made sure that the "to" and "bcc" ↵Malcolm Tredinnick
sequences have the same type before concatenating. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6953 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-20Fixed #5778 -- Changed the way we detect if a string is non-ASCII when creatingMalcolm Tredinnick
email headers. This fixes a problem that was showing up on some (but not all) systems. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6551 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-15Fixed #5486 -- Worked around the lack of os.getpid() in Jython, whilst still ↵Malcolm Tredinnick
using it for CPython. Patch from Leo Soto. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6270 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-08-11Fixed #4910 -- Allow Unicode content to be passed in for text-based e-mailMalcolm Tredinnick
attachments. Thanks, djoume@taket.org. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5854 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-06Fixed #4781 -- Typo fix. Pointed out by Simon Litchfield.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5622 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-04Merged Unicode branch into trunk (r4952:5608). This should be fullyMalcolm Tredinnick
backwards compatible for all practical purposes. Fixed #2391, #2489, #2996, #3322, #3344, #3370, #3406, #3432, #3454, #3492, #3582, #3690, #3878, #3891, #3937, #4039, #4141, #4227, #4286, #4291, #4300, #4452, #4702 git-svn-id: http://code.djangoproject.com/svn/django/trunk@5609 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-01Backported the fix from [5581] (unicode-branch) to trunk. Fixes a methodMalcolm Tredinnick
resolution order problem when setting email headers. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5582 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-27Fixed #2007 -- Added support for configurable encoding of email message bodies.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5553 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-27Fixed #3985 -- Added support for custom email headers.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5550 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-27Added support for creating multipart/alternative email messages. Also allowMalcolm Tredinnick
tweaking of main body MIME subtype for brave people. Fixed #3605. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5548 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-06-27Fixed #1541 -- Added ability to create multipart email messages. Thanks, NickMalcolm Tredinnick
Lane. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5547 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-03Fixed #3307 -- Added BCC support to the EmailMessage class. En-passant, fixed aMalcolm Tredinnick
number of RST formatting errors in the email docs. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5146 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-03Minor edit of initialisation logic.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5145 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-03Fixed #2897 -- Added support for TLS connections to email handling. This meansMalcolm Tredinnick
servers like Google's SMTP server can now be used for admin emails. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5144 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-03Fixed #3472 -- Don't BASE64-encode UTF-8 (or ASCII) email messages.Malcolm Tredinnick
Patch from smurf@smurf.noris.de. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5143 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-03Fixed bozo error in [5141].Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5142 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-03Fixed #3366 -- Part 1 of the email code refactoring and feature extension. ThisMalcolm Tredinnick
part refactors email sending into a more object-oriented interface in order to make adding new features possible without making the API unusable. Thanks to Gary Wilson for doing the design thinking and initial coding on this. Includes documentation addition, but it probably needs a rewrite/edit, since I'm not very happy with it at the moment. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5141 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-04-20Fixed #4086 -- Removed some redundant code points out by Ilya Semenov.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5041 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-25Fixed #3488: send_mail no longer uses settings in function default ↵Jacob Kaplan-Moss
arguments. Thanks to Per Jonsson for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4574 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-25Fixed #3554: django.core.mail now generates dates with the email module ↵Jacob Kaplan-Moss
instead of the outdated rfc822 module. Thanks, real.human@mrmachine.net git-svn-id: http://code.djangoproject.com/svn/django/trunk@4570 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-17Fixed #3067 -- Improved caching of machine hostname to increase server restartMalcolm Tredinnick
times. Thanks SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4536 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-10Fixed bug in [4058], in django/core/mail.py. Thanks, Igor GoryachevAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4065 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-10Fixed #3007 -- Fixed Python 2.4-ism from [4051] in django/core/mail.py. Also ↵Adrian Holovaty
cached the result of socket.getfqdn(). Thanks for the patch, SmileyChris git-svn-id: http://code.djangoproject.com/svn/django/trunk@4058 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-07Formatting fixes from the past round of checkinsAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4052 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-11-07Fixed #2991: Added Message-ID header to messages sent from Django. Thanks, ↵Jacob Kaplan-Moss
Graham King. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4051 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-26Fixed #1634 -- Changed django.core.mail to include 'Date' header in e-mails. ↵Adrian Holovaty
Thanks, Eric Walstad git-svn-id: http://code.djangoproject.com/svn/django/trunk@2984 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-13Fixed #1235: email sent from {{{django.core.mail}}} will now be encoded usingJacob Kaplan-Moss
the value of the {{{DEFAULT_CHARSET}}} setting. Thanks, igor@goryachev.org and akaihola. git-svn-id: http://code.djangoproject.com/svn/django/trunk@2901 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-02MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly ↵Adrian Holovaty
backwards-incompatible. Please read http://code.djangoproject.com/wiki/RemovingTheMagic for upgrade instructions. git-svn-id: http://code.djangoproject.com/svn/django/trunk@2809 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-11Fixed #1555 -- Added EMAIL_PORT setting. Thanks, bde3Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2665 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-11Converted django.core.mail to use 'from django.conf import settings' instead ↵Adrian Holovaty
of importing specific settings directly git-svn-id: http://code.djangoproject.com/svn/django/trunk@2664 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-22Fixed #1529 -- Added support for authenticated SMTP to django.core.mail. ↵Adrian Holovaty
Thanks, Bruce Kroeze git-svn-id: http://code.djangoproject.com/svn/django/trunk@2548 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-29Fixed #1139 -- Changed django.core.mail to raise BadHeaderError (a subclass ↵Adrian Holovaty
of ValueError) and changed docs/email.txt example to use that git-svn-id: http://code.djangoproject.com/svn/django/trunk@1798 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-29Fixed #1135 -- Changed django.core.mail functions not to allow newlines in ↵Adrian Holovaty
headers git-svn-id: http://code.djangoproject.com/svn/django/trunk@1795 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-27Added EMAIL_SUBJECT_PREFIX setting so you can customize the "[Django]" prefixJacob Kaplan-Moss
on emails send with mail_admins/mail_managers. Refs #568. git-svn-id: http://code.djangoproject.com/svn/django/trunk@710 bcc190cf-cafb-0310-a4f2-bffc1f526a37