<?
if ($_POST["email"]<>'') {
$ToEmail = 'username@domain.com';
$EmailSubject = "From: ".$_POST["DID"]."\r\n";
$mailheader = "From: ".$_POST["email"]."\r\n";
$mailheader .= "Reply-To: ".$_POST["email"]."\r\n";
$mailheader .= "Content-type: text/html; charset=iso-8859-1\r\n";
$MESSAGE_BODY = "date: ".$_POST["date"]."<br>";
$MESSAGE_BODY .= "Email: ".$_POST["email"]."<br>";
$MESSAGE_BODY .= "Payment: ".$_POST["money"]."<br>";
$MESSAGE_BODY .= "description: ".$_POST["description"]."<br>";
mail($ToEmail, $EmailSubject, $MESSAGE_BODY, $mailheader) or die ("Failure");
} ?>
It was working when I first created the website, but I checked today and it returns Failure now. Could it be some upgrade in the server that has made this code obsolete or there's some error in it that you can see? I have no clue why it stopped working.
Any help will be highly appreciated.
M1CK

New Topic/Question
Reply




MultiQuote





|