Fix incorrect mail variable

This commit is contained in:
Brian Lycett 2021-03-27 16:11:11 +00:00
parent 2b550b1819
commit 65bee01fad

View File

@ -133,10 +133,10 @@ You should change your password as soon as possible. Go to ${SITE_PROTOCOL}${SE
EoT; EoT;
include_once "mail_functions.inc.php"; include_once "mail_functions.inc.php";
$sent_email = send_email($email,"$first_name $last_name",$mail_subject,$mail_body); $sent_email = send_email($mail,"$first_name $last_name",$mail_subject,$mail_body);
$creation_message = "The account was created"; $creation_message = "The account was created";
if ($sent_email) { if ($sent_email) {
$creation_message .= " and an email sent to $email."; $creation_message .= " and an email sent to $mail.";
} }
else { else {
$creation_message .= " but unfortunately the email wasn't sent.<br>More information will be available in the logs."; $creation_message .= " but unfortunately the email wasn't sent.<br>More information will be available in the logs.";