'Send an approval email to the site administrators to
approve this user.
The approval email will use the following templates,
which can be overriden by setting APPROVAL_EMAIL_SUBJECT,
APPROVAL_EMAIL_BODY, and APPROVAL_EMAIL_HTML appropriately:
``registration/admin_approve_email_subject.txt``
This template will be used for the subject line of the
email. Because it is used as the subject line of an email,
this template\'s output **must** be only a single line of
text; output longer than one line will be forcibly joined
into only a single line.
``registration/admin_approve_email.txt``
This template will be used for the text body of the email.
``registration/admin_approve_email.html``
This template will be used for the html body of the email.
These templates will each receive the following context
variables:
``user``
The new user account
``profile_id``
The id of the associated``SupervisedRegistrationProfile``
object.
``site``
An object representing the site on which the user
registered; depending on whether ``django.contrib.sites``
is installed, this may be an instance of either
``django.contrib.sites.models.Site`` (if the sites
application is installed) or
``django.contrib.sites.requests.RequestSite`` (if
not). Consult the documentation for the Django sites
framework for details regarding these objects\' interfaces.
``request``
Optional Django\'s ``HttpRequest`` object from view.
If supplied will be passed to the template for better
flexibility via ``RequestContext``.'

def send_admin_approve_email(self, user, site, request=None):

    admin_approve_email_subject = getattr(settings, u'ADMIN_APPROVAL_EMAIL_SUBJECT', u'registration/admin_approve_email_subject.txt')
    admin_approve_email_body = getattr(settings, u'ADMIN_APPROVAL_EMAIL_BODY', u'registration/admin_approve_email.txt')
    admin_approve_email_html = getattr(settings, u'ADMIN_APPROVAL_EMAIL_HTML', u'registration/admin_approve_email.html')
    ctx_dict = {u'user': user, u'profile_id': user.registrationprofile.id, u'site': site}
    admins = getattr(settings, u'ADMINS', None)
    if (not admins):
        raise ImproperlyConfigured(u'Using    the    admin_approval    registration    backend    requires    at    least    one    admin    in    settings.ADMINS')
    admins = [admin[1] for admin in admins]
    send_email(admins, ctx_dict, admin_approve_email_subject, admin_approve_email_body, admin_approve_email_html)
