def send_approved_mail(request, user):
 context = {u'request': request, u'user': user}
 subject = subject_template(u'email/account_approved_subject.txt', context)
 send_mail_template(subject, u'email/account_approved', settings.DEFAULT_FROM_EMAIL, user.email, context=context)

def send_approved_mail ( request , user ) : context = { u'request' : request , u'user' : user } subject = subject_template ( u'email/account_approved_subject.txt' , context ) send_mail_template ( subject , u'email/account_approved' , settings . DEFAULT_FROM_EMAIL , user . email , context = context )
sends an email to a user once their is_active status goes from false to true when the accounts_approval_required setting is true .