- Reaction score
I have this simple email script and for some reason the emails recieved have no body. Also, I put in the headers that it was from Jacob Walters but it shows up as Jacob@yahoo.com.
Please tell me why it is crewing up like this. I think it is because I put in the wrong content-type or some settings in the php.ini are wrong.
$to = Ninjaferret666@yahoo.com; $from = "Jacob Walters"; $headers = "from: $from\r\n"; $headers .= "Importance: High\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: multipart/alternative\r\n"; $message = "Your account has been deleted!"; $subject = "Account Deleted"; var $sent = mail($to,$subject,$message,$headers); if ($sent) echo "Email Sent!"; else echo "Failed to Send!";