Django - Userena not sending email -


i've installed userena app , have running. can register no emails being sent out. i'm overriding signup form if makes difference. i'm not getting error messages , can see users being created in database.

settings.py

email_backend = 'django.core.mail.backends.dummy.emailbackend'  email_use_tls = true email_host = 'smtp.gmail.com' email_port = 587 email_host_user = 'email@gmail.com' email_host_password = 'password' 

forms.py

from django.utils.translation import ugettext_lazy _ userena.forms import signupform models import userprofile, refuserage, refuserreference, refusersport, refuserview django.contrib.auth.models import user     class signupformextra(signupform):     age_pick = forms.modelchoicefield(queryset = refuserage.objects.all())     ref_pick = forms.modelchoicefield(queryset = refuserreference.objects.all())     sport_pick = forms.modelchoicefield(queryset = refusersport.objects.all())     view_pick = forms.modelchoicefield(queryset = refuserview.objects.all())     first_name = forms.charfield(label=_(u'first name'), max_length=30, required=false)     last_name = forms.charfield(label=_(u'last name'), max_length=30, required=false)      def __init__(self, *args, **kw):         super(signupformextra, self).__init__(*args, **kw)      def save(self):         new_user = super(signupformextra, self).save()         new_user_profile = new_user.get_profile()         new_user_profile          new_user_profile.first_name = self.cleaned_data['first_name']         new_user_profile.last_name = self.cleaned_data['last_name']         new_user_profile.age_pick = self.cleaned_data['age_pick']         new_user_profile.ref_pick = self.cleaned_data['ref_pick']         new_user_profile.sport_pick = self.cleaned_data['sport_pick']         new_user_profile.view_pick = self.cleaned_data['view_pick']         new_user_profile.save()          return new_user 

views.py

from django.http import httpresponse, httpresponseredirect models import userprofile django.shortcuts import render_to_response, requestcontext forms import signupformextra userena import views userena_views  def signup_view(request):     form = signupformextra()     response = userena_views.signup(request, signup_form=signupformextra)     return response 

emails not being sent out because have email backend settings dummy backend

as name suggests dummy backend nothing messages

change

django.core.mail.backends.dummy.emailbackend 

to smtp backend

django.core.mail.backends.smtp.emailbackend 

also, make sure

email_host_user = 'email@gmail.com' email_host_password = 'password' 

are credentials valid inbox


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -