Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
4808df102a
Be consistent with $pwd quoting in emails 2024-10-11 18:04:34 -04:00
3 changed files with 4 additions and 4 deletions

View file

@ -54,7 +54,7 @@ if ($action == "approve") {
$row["email"],
"Gift Registry application approved",
"Your Gift Registry application was approved by " . $_SESSION["fullname"] . ".\r\n" .
"Your username is " . $row["username"] . " and your password is $pwd.",
"Your username is " . $row["username"] . " and your password is '$pwd'.",
"From: {$opt["email_from"]}\r\nReply-To: {$opt["email_reply_to"]}\r\nX-Mailer: {$opt["email_xmailer"]}\r\n"
) or die("Mail not accepted for " . $row["email"]);
}

View file

@ -80,7 +80,7 @@ if (isset($_POST["action"]) && $_POST["action"] == "signup") {
$email,
"Gift Registry account created",
"Your Gift Registry account was created.\r\n" .
"Your username is $username and your password is $pwd.",
"Your username is $username and your password is '$pwd'.",
"From: {$opt["email_from"]}\r\nReply-To: {$opt["email_reply_to"]}\r\nX-Mailer: {$opt["email_xmailer"]}\r\n"
) or die("Mail not accepted for $email");
}

View file

@ -136,7 +136,7 @@ else if ($action == "insert") {
$email,
"Gift Registry account created",
"Your Gift Registry account was created.\r\n" .
"Your username is $username and your password is $pwd.",
"Your username is $username and your password is '$pwd'.",
"From: {$opt["email_from"]}\r\nReply-To: {$opt["email_reply_to"]}\r\nX-Mailer: {$opt["email_xmailer"]}\r\n"
) or die("Mail not accepted for $email");
header("Location: " . getFullPath("users.php?message=User+added+and+e-mail+sent."));
@ -178,7 +178,7 @@ else if ($action == "reset") {
mail(
$resetemail,
"Gift Registry password reset",
"Your Gift Registry password was reset to $pwd.",
"Your Gift Registry password was reset to '$pwd'.",
"From: {$opt["email_from"]}\r\nReply-To: {$opt["email_reply_to"]}\r\nX-Mailer: {$opt["email_xmailer"]}\r\n"
) or die("Mail not accepted for $email");
header("Location: " . getFullPath("users.php?message=Password+reset."));