\r\n"; $headers .= "Reply-To: $email\r\n"; if (mail($to, $email_subject, $email_body, $headers)) { header("Location: index.html"); exit; } else { echo "Failed to send the email."; } } ?>