You are here

function multiple_email_send_confirmation in Multiple E-mail Addresses 5

Same name and namespace in other branches
  1. 6 multiple_email.module \multiple_email_send_confirmation()
  2. 7 multiple_email.module \multiple_email_send_confirmation()
  3. 2.x multiple_email.module \multiple_email_send_confirmation()

Sends the confirmation email for the specified address to the specified user account.

Parameters

object $account:

object $email:

2 calls to multiple_email_send_confirmation()
multiple_email_add_form_submit in ./multiple_email_add_page.inc
Processes form submission of multiple_email_add_form
multiple_email_confirm_form_submit in ./multiple_email_confirm_page.inc
Process multiple_email_confirm_form submission

File

./multiple_email.module, line 512
multiple_email module file

Code

function multiple_email_send_confirmation($account, $email) {
  $subject = multiple_email_message_part('subject', 'confirmation', $account, $email);
  $body = multiple_email_message_part('body', 'confirmation', $account, $email);
  drupal_mail('multiple_email_confirmation', $email->email, $subject, $body, variable_get('site_mail', ini_get('sendmail_from')));
}