Commits

Anonymous committed d4e14dd

Use Django's send_mail() function.

  • Participants
  • Parent commits 8fd0bd5

Comments (0)

Files changed (1)

registration/models.py

 import sha
 
 from google.appengine.ext import db
-from google.appengine.api import mail
 
 from django.conf import settings
 from django.db import models
                                        { 'activation_key': registration_profile.activation_key,
                                          'expiration_days': settings.ACCOUNT_ACTIVATION_DAYS})
             
-            mail.send_mail(settings.DEFAULT_FROM_EMAIL, new_user.email, subject, message)
+            send_mail(subject, message, settings.DEFAULT_FROM_EMAIL, [new_user.email])
         return new_user
     
     def create_profile(self, user):