You are here

function user_email_verification_mail_notify in User email verification 7

Send e-mail to user when they request a new verification link

1 call to user_email_verification_mail_notify()
user_email_verification_request_submit in ./user_email_verification.admin.inc
_state

File

./user_email_verification.module, line 493
This module allows you to have e-mail verification and in meanwhile allowing the users to type their own passwords. If they do not verify their accounts in a certain time interval the user will be blocked.

Code

function user_email_verification_mail_notify($op, $account, $language = NULL) {
  $params['account'] = $account;
  $language = $language ? $language : user_preferred_language($account);
  $mail = drupal_mail('user_email_verification', 'verify', $account->mail, $language, $params);
  return empty($mail) ? NULL : $mail['result'];
}