def do_send_confirmation_email(invitee: PreregistrationUser, referrer: UserProfile) -> str:
    '\n    Send the confirmation/welcome e-mail to an invited user.\n    '
    activation_url = create_confirmation_link(invitee, Confirmation.INVITATION)
    context = {'referrer_full_name': referrer.full_name, 'referrer_email': referrer.delivery_email, 'activate_url': activation_url, 'referrer_realm_name': referrer.realm.name}
    from_name = f'{referrer.full_name} (via Zulip)'
    send_email('zerver/emails/invitation', to_emails=[invitee.email], from_name=from_name, from_address=FromAddress.tokenized_no_reply_address(), language=referrer.realm.default_language, context=context, realm=referrer.realm)
    return activation_url
Send the confirmation/welcome e-mail to an invited user.
def do_send_confirmation_email(invitee: PreregistrationUser, referrer: UserProfile) -> str:
    '\n    \n    '
    activation_url = create_confirmation_link(invitee, Confirmation.INVITATION)
    context = {'referrer_full_name': referrer.full_name, 'referrer_email': referrer.delivery_email, 'activate_url': activation_url, 'referrer_realm_name': referrer.realm.name}
    from_name = f'{referrer.full_name} (via Zulip)'
    send_email('zerver/emails/invitation', to_emails=[invitee.email], from_name=from_name, from_address=FromAddress.tokenized_no_reply_address(), language=referrer.realm.default_language, context=context, realm=referrer.realm)
    return activation_url