def send_verification_mail(request, user, verification_type):
 verify_url = ((reverse(verification_type, kwargs={u'uidb36': int_to_base36(user.id), u'token': default_token_generator.make_token(user)}) + u'?next=') + (next_url(request) or u'/'))
 context = {u'request': request, u'user': user, u'verify_url': verify_url}
 subject_template_name = (u'email/%s_subject.txt' % verification_type)
 subject = subject_template(subject_template_name, context)
 send_mail_template(subject, (u'email/%s' % verification_type), settings.DEFAULT_FROM_EMAIL, user.email, context=context)

def send_verification_mail ( request , user , verification_type ) : verify_url = ( ( reverse ( verification_type , kwargs = { u'uidb36' : int_to_base36 ( user . id ) , u'token' : default_token_generator . make_token ( user ) } ) + u'?next=' ) + ( next_url ( request ) or u'/' ) ) context = { u'request' : request , u'user' : user , u'verify_url' : verify_url } subject_template_name = ( u'email/%s_subject.txt' % verification_type ) subject = subject_template ( subject_template_name , context ) send_mail_template ( subject , ( u'email/%s' % verification_type ) , settings . DEFAULT_FROM_EMAIL , user . email , context = context )
sends an email with a verification link to users when accounts_verification_required is true and theyre signing up .