diff --git a/public/parts/verify.php b/public/parts/verify.php index cfc0013..e10c233 100644 --- a/public/parts/verify.php +++ b/public/parts/verify.php @@ -34,14 +34,14 @@ if (!empty($_POST['email'])) { try { $verification = new Email(); - $verification->addTo($SETTINGS["smtp"]["notification_to"]); + $verification->addTo(strtolower($_POST['email'])); $verification->setFrom($SETTINGS["smtp"]["fromaddress"], $SETTINGS["smtp"]["fromname"]); $verification->setSMTP($SETTINGS["smtp"]["host"], $SETTINGS["smtp"]["port"], $SETTINGS["smtp"]["auth"], $SETTINGS["smtp"]["user"], $SETTINGS["smtp"]["password"], $SETTINGS["smtp"]["secure"]); $verification->setSubject("HACHE email verification"); $verification->setBody("The verification code for renewing your HACHE membership is $code."); $verification->send(); } catch (Exception $e) { - + die("There was a problem sending the verification email. Try again later."); } } else if (!empty($_POST['code'])) { if (empty($_SESSION['code'])) {