Opened 17 years ago
Closed 17 years ago
#5915 closed (wontfix)
use_tls is not passed to send_email (django.core.mail)
Reported by: | anonymous | Owned by: | nobody |
---|---|---|---|
Component: | Core (Other) | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
As for revision 6660 you cannot pass use_tls to send_email function.
Patch is simple:
max@explorer ~/devel/django-inst/trunk/django/core $ svn diff mail.py Index: mail.py =================================================================== --- mail.py (revision 6660) +++ mail.py (working copy) @@ -326,7 +326,7 @@ New code should use the EmailMessage class directly. """ connection = SMTPConnection(username=auth_user, password=auth_password, - fail_silently=fail_silently) + fail_silently=fail_silently, use_tls=None) return EmailMessage(subject, message, from_email, recipient_list, connection=connection).send() def send_mass_mail(datatuple, fail_silently=False, auth_user=None, auth_password=None):
Change History (2)
comment:1 by , 17 years ago
Summary: | use_tls is not passed from send_email (django.core.mail) → use_tls is not passed to send_email (django.core.mail) |
---|
comment:2 by , 17 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Closing wontfix for the following reasons:
send_mail()
exists as a backwards-compatible wrappper aroundEmailMessage
andSMTPConnection
.send_mail()
is not intended to provide every conceivable feature of the classes it wraps.send_mail()
, preferring instead to direct people toward usingEmailMessage
andSMTPConnection
directly.