'Send an email using a passed in confirmation profile.
Use specified url, subject, text_template, html_template and
email to send_to.'

def _send_email(self, confirmation_profile, url, subject, text_template, html_template, send_to, **kwargs):

    current_site = Site.objects.get_current()
    email_kwargs = {'activation_key': confirmation_profile.activation_key, 'domain': current_site.domain, 'activate_url': url, 'login_url': reverse('users.login'), 'reg': 'main'}
    email_kwargs.update(kwargs)
    if hasattr(confirmation_profile, 'locale'):
        locale = confirmation_profile.locale
    else:
        locale = confirmation_profile.user.profile.locale
    @email_utils.safe_translation
    def _make_mail(locale):
        mail = email_utils.make_mail(subject=subject, text_template=text_template, html_template=html_template, context_vars=email_kwargs, from_email=settings.DEFAULT_FROM_EMAIL, to_email=send_to)
        return mail
    email_utils.send_messages([_make_mail(locale)])
