auth::send_email_verification_email (private)

 auth::send_email_verification_email -user_id user_id

Defined in packages/acs-authentication/tcl/authentication-procs.tcl

Sends out an email to the user that lets them verify their email. Throws an error if we couldn't send out the email.

Switches:
-user_id (required)

Partial Call Graph (max 5 caller/called nodes):
%3 auth::check_local_account_status auth::check_local_account_status (private) auth::send_email_verification_email auth::send_email_verification_email auth::check_local_account_status->auth::send_email_verification_email auth::create_local_account auth::create_local_account (public) auth::create_local_account->auth::send_email_verification_email _ _ (public) auth::send_email_verification_email->_ acs_mail_lite::send acs_mail_lite::send (public) auth::send_email_verification_email->acs_mail_lite::send ad_conn ad_conn (public) auth::send_email_verification_email->ad_conn ad_system_name ad_system_name (public) auth::send_email_verification_email->ad_system_name ad_system_owner ad_system_owner (public) auth::send_email_verification_email->ad_system_owner

Testcases:
No testcase defined.
Source code:
    # These are used in the messages below
    set token [auth::get_user_secret_token -user_id $user_id]
    set to_addr [party::get -party_id $user_id -element email]
    set subsite_url [site_node::get_url  -node_id [ad_conn subsite_node_id]]
    set confirmation_url [export_vars -base "[ad_url]$subsite_url/register/email-confirm" { token user_id }]
    set system_name [ad_system_name]

    acs_mail_lite::send -send_immediately  -to_addr $to_addr  -from_addr "\"$system_name\" <[parameter::get -parameter NewRegistrationEmailAddress -default [ad_system_owner]]>"  -subject [_ acs-subsite.lt_Welcome_to_system_nam]  -body [_ acs-subsite.lt_To_confirm_your_regis]
Generic XQL file:
packages/acs-authentication/tcl/authentication-procs.xql

PostgreSQL XQL file:
packages/acs-authentication/tcl/authentication-procs-postgresql.xql

Oracle XQL file:
packages/acs-authentication/tcl/authentication-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: