Hi, I have a forgot password page on my website (custom coded) I am trying to send reset password emails. The first one went through and here is the code for it: $to = $email;
$subject = "Staff - Password Reset";
// Always set content-type when sending HTML email
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
$headers .= "From: admin@differentcraft-staff.tk";
$message = "
<html>
<head>
<title>Password Reset</title>
<body>
<h1>Password Reset</h1>
<p>You are receiving this email because your username and email were used at our <a href='https://differentcraft-staff.tk/forgot'>password reset</a> page.</p>
<p>To reset your password, please click on <a href='https://differentcraft-staff.tk/reset/".$resetcode."'>this</a> link.</p>
<p>If this link does not work, please go to <a href='https://differentcraft-staff.tk/reset/".$resetcode."'>https://differentcraft-staff.tk/reset/".$resetcode."</a></p>
<p>If you did not request this password reset, you can safely ignore this email!</p>
</body>
</html>
";
mail($to, $subject, $message, $headers);
Note that the opening and closing PHP tags are there. I am slightly confused as to why this is happening and would appreciate any help you guys can give me. Thanks for reading, Redstone