This script used to work fine but it does not seem to work anymore. My site is on Boru if that helps.
---------- Post added at 09:22 PM ---------- Previous post was at 09:19 PM ----------
Since the code is unreadable in my first post and for some reason I can't even edit my first post:
[/php]
PHP:
<?phpif(isset($_POST["name"], $_POST["email"], $_POST["msg"])){ $to = "<Blocked Out Personal Email Address>";
$subject = "New Message From " . $_POST["name"];
$body = "Name: " . $_POST["name"]; $body .= "\r\nEmail: " . $_POST["email"]; $body .= "\r\n\r\nMessage:\r\n" . $_POST["msg"];
$headers = "Content-type: text/plain; charset=windows-1251 \r\n"; $headers .= "From: me@andrewlee.co.cc\r\n";
if(mail($to, $subject, $body, $headers)){ echo 1; } else{ echo 2; }}else{ header("Location: ../");}?>
---------- Post added at 09:22 PM ---------- Previous post was at 09:19 PM ----------
Since the code is unreadable in my first post and for some reason I can't even edit my first post:
PHP:
This script used to work fine but it does not seem to work anymore. My site is on Boru if that helps.
[PHP]<?phpif(isset($_POST["name"], $_POST["email"], $_POST["msg"])){ $to = "<Blocked Out Personal Email Address>";$subject = "New Message From " . $_POST["name"];$body = "Name: " . $_POST["name"]; $body .= "\r\nEmail: " . $_POST["email"]; $body .= "\r\n\r\nMessage:\r\n" . $_POST["msg"];$headers = "Content-type: text/plain; charset=windows-1251 \r\n"; $headers .= "From: me@andrewlee.co.cc\r\n";
if(mail($to, $subject, $body, $headers)){echo 1; }else{ echo 2;}}else{header("Location: ../");}?>