Commit ea9dafc1 authored by mig5's avatar mig5 Committed by mig5
Browse files

send the welcome mail to "$client_mail" instead of "$account->mail"

parent b6b83bcf
...@@ -71,7 +71,7 @@ function install_send_welcome_mail($url, $account, $profile, $language, $client_ ...@@ -71,7 +71,7 @@ function install_send_welcome_mail($url, $account, $profile, $language, $client_
'!date' => format_date(time()), '!login_uri' => url('user', array('absolute' => TRUE)), '!date' => format_date(time()), '!login_uri' => url('user', array('absolute' => TRUE)),
'!edit_uri' => url('user/'. $account->uid .'/edit', array('absolute' => TRUE))); '!edit_uri' => url('user/'. $account->uid .'/edit', array('absolute' => TRUE)));
$mail_success = drupal_mail('install', 'welcome-admin', $account->mail, user_preferred_language($account), $mail_params, $from, TRUE); $mail_success = drupal_mail('install', 'welcome-admin', $client_email, user_preferred_language($account), $mail_params, $from, TRUE);
if ($mail_success) { if ($mail_success) {
drush_log(t('Sent welcome mail to @client', array('@client' => $client_email)), 'message'); drush_log(t('Sent welcome mail to @client', array('@client' => $client_email)), 'message');
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment