tags:

views:

5

answers:

0

I'm using iDevSpot's PHPFORMMAIL Script (http://www.idevspot.com/PhpFormMail.php) and having trouble. I've edited the correct things, however, when it says "Email Sent" nothing is received by the recipient or the sender...don't know what's wrong...any ideas? Here's the code that I'm using.

<?PHP if ($_GET[send] < 1) { ?>
<?php include "form.php"; ?>
<?PHP } ?>
<?PHP
if ($_GET[send] == 1) {
        if ($_POST[FirstName] == $nil || $_POST[EMAIL] == $nil || $_POST[LastName] == $nil || $_POST[Phone] == $nil)
                $_GET[send] = 2;
}

if ($_GET[send] == 1) {
$comment = preg_replace("/\n/","\n<BR>",$_POST[COMMENT]);
$to="$YOUREMAIL";
$headers.= "MIME-Version: 1.0\r\n";
$headers.= "Content-type: text/html; ";
$headers.= "charset=iso-8859-1\r\n";
$headers.= "From: $_POST[EMAIL]";
$subject = "Executive Summary Request";

$body = "<HTML><BODY>
<b>From : $_POST[FirstNAME] $_POST[LastNAME]</b><BR>Email: $_POST[EMAIL]<BR>Phone: $_POST[Phone]<br> Method of Contact: $_POST[ContactMethod]<br><br>
</BODY></HTML>
";

mail(to,body,subject,from);

?>

with $YOUREMAIL being set to my e-mail address...it's in another section of the code and I prefer not to display here...any suggestions? The original body of the code has

mail($to,$body,$subject)

However, when I set it up that way it says missing FROM and doesn't send...then it give another error leaving the $ in front...any suggestions?

Even now...it doesn't display any errors, however it doesn't send the mail...any suggestions? Check it out at http://www.thezld.com/contact.php