Commits

Michael Elsdörfer committed 867d248 Draft

Make work with Django 1.4.

Comments (0)

Files changed (14)

File contents unchanged.
File contents unchanged.
File contents unchanged.
File contents unchanged.
File contents unchanged.
File contents unchanged.

contact_form/__init__.py

File contents unchanged.

contact_form/forms.py

 
 from django import forms
 from django.conf import settings
-from django.core.mail import SMTPConnection, EmailMessage
+from django.core.mail import EmailMessage
 from django.template import loader as django_loader
 from django.template import RequestContext
 from django.contrib.sites.models import Site, RequestSite
         Build and send the email message.
 
         """
-        connection = SMTPConnection(fail_silently=fail_silently)
-        EmailMessage(connection=connection, **self.get_message_dict()).send()
+        msg = EmailMessage(**self.get_message_dict())
+        msg.send(fail_silently=fail_silently)
 
 
 class AkismetContactForm(ContactForm):

contact_form/urls.py

File contents unchanged.

contact_form/views.py

File contents unchanged.

docs/forms.txt

File contents unchanged.

docs/overview.txt

File contents unchanged.

docs/views.txt

File contents unchanged.
File contents unchanged.