def send_approve_mail(request, user):
 approval_emails = split_addresses(settings.ACCOUNTS_APPROVAL_EMAILS)
 if (not approval_emails):
  return
 context = {u'request': request, u'user': user, u'change_url': admin_url(user.__class__, u'change', user.id)}
 subject = subject_template(u'email/account_approve_subject.txt', context)
 send_mail_template(subject, u'email/account_approve', settings.DEFAULT_FROM_EMAIL, approval_emails, context=context)

def send_approve_mail ( request , user ) : approval_emails = split_addresses ( settings . ACCOUNTS_APPROVAL_EMAILS ) if ( not approval_emails ) : return context = { u'request' : request , u'user' : user , u'change_url' : admin_url ( user . __class__ , u'change' , user . id ) } subject = subject_template ( u'email/account_approve_subject.txt' , context ) send_mail_template ( subject , u'email/account_approve' , settings . DEFAULT_FROM_EMAIL , approval_emails , context = context )
sends an email to staff in listed in the setting accounts_approval_emails .