Author: leidel
Date: Tue Dec 23 05:15:03 2008
New Revision: 49
Modified:
trunk/mailerdev/mailer/__init__.py
Log:
Made send_mail completely signature compatible with Django's send_mail.
Fixes issues with django-contact-form.
Modified: trunk/mailerdev/mailer/__init__.py
==============================================================================
--- trunk/mailerdev/mailer/__init__.py (original)
+++ trunk/mailerdev/mailer/__init__.py Tue Dec 23 05:15:03 2008
@@ -10,14 +10,15 @@
# replacement for django.core.mail.send_mail
-def send_mail(subject, message, from_address, to_addresses,
priority="medium"):
+def send_mail(subject, message, from_email, recipient_list,
priority="medium",
+ fail_silently=False, auth_user=None, auth_password=None):
from mailer.models import Message
# need to do this in case subject used lazy version of ugettext
subject = force_unicode(subject)
priority = PRIORITY_MAPPING[priority]
- for to_address in to_addresses:
+ for to_address in recipient_list:
Message(to_address=to_address,
- from_address=from_address,
+ from_address=from_email,
subject=subject,
message_body=message,
priority=priority).save()
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---