Commits

Anonymous committed 35091bf

Modified the create_inactive_user method to use django-mailer (http://github.com/jtauber/django-mailer/) if it is available as an installed app.

Comments (0)

Files changed (1)

registration/models.py

         registration_profile = self.create_profile(new_user)
         
         if send_email:
-            from django.core.mail import send_mail
+            if "mailer" in settings.INSTALLED_APPS:
+                from mailer import send_mail
+            else:
+                from django.core.mail import send_mail
+                
             current_site = Site.objects.get_current()
             
             subject = render_to_string('registration/activation_email_subject.txt',