def do_send_confirmation_email(invitee, referrer):
 subject_template_path = 'confirmation/invite_email_subject.txt'
 body_template_path = 'confirmation/invite_email_body.txt'
 context = {'referrer': referrer, 'support_email': settings.ZULIP_ADMINISTRATOR, 'verbose_support_offers': settings.VERBOSE_SUPPORT_OFFERS}
 if referrer.realm.is_zephyr_mirror_realm:
  subject_template_path = 'confirmation/mituser_invite_email_subject.txt'
  body_template_path = 'confirmation/mituser_invite_email_body.txt'
 Confirmation.objects.send_confirmation(invitee, invitee.email, additional_context=context, subject_template_path=subject_template_path, body_template_path=body_template_path, host=referrer.realm.host)

def do_send_confirmation_email ( invitee , referrer ) : subject_template_path = 'confirmation/invite_email_subject.txt' body_template_path = 'confirmation/invite_email_body.txt' context = { 'referrer' : referrer , 'support_email' : settings . ZULIP_ADMINISTRATOR , 'verbose_support_offers' : settings . VERBOSE_SUPPORT_OFFERS } if referrer . realm . is_zephyr_mirror_realm : subject_template_path = 'confirmation/mituser_invite_email_subject.txt' body_template_path = 'confirmation/mituser_invite_email_body.txt' Confirmation . objects . send_confirmation ( invitee , invitee . email , additional_context = context , subject_template_path = subject_template_path , body_template_path = body_template_path , host = referrer . realm . host )
send the confirmation/welcome e-mail to an invited user .