登録に成功した後、ユーザーにメールを送信しようとしています。以下は私の.phpコードです。
$to = $email;
$subject = "Signup | Verification";
$message = "Congratulation $f_name $l_name you have been successfully registered. Please
click the link to active your account.\r\n";
$message .= "http://www.maaks.fr/hotel/verify.php?email=$email&hash=$hash\r\n";
$from = "noreply@yoursite.com";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-rype: text/html; charset=iso-8859-1\r\n";
$headers .= "Content-Transfer-Encoding; 7bit\r\n";
$headers = "From:" . $from . "\r\n";
$sentmail = mail($to,$subject,$message,$headers);
if($sentmail)
{
header("Location: thankyou.php?member=successfully");
exit();
}
ユーザーにメールを送信しません。$sentmailに問題がなければサンキューページに進むことを確認しました。しかし、興味深いのは、メールを送信せずにサンキューページに移動することです。
私が忘れたものはありますか?