okay I built this php form for a site and it doesn't go through... Instead I'm getting error message...
Warning: mail() [function.mail]: SMTP server response: 553 5.3.0 <me@localhost.com>... DISCARD Spam Relay in \HOSTING\DFS\20\5\0\5\2016609505\user\sites\mywebsitename.com\www\email.php on line 15
It's very simple form.
here is the php code.
<?
$msg = "email from contact form1\n";
$msg.= "name:".$POST['name']."\n";
$msg.= "phonenumber ".$POST['phonenumber']."\n";
$msg.= "email: ".$POST['email']."\n";
$msg.= "accountnumber: ".$POST['accountnumber']."\n";
$msg.= "comment:" .$_POST['comment']."\n\n";
$to = "info@mywebsitename.com, myname@gmail.com";
$subject = "contact form from mysite";
$header .= "Reply-To: Some One <info@mywebsitename.com>\r\n";
$header .= "Return-Path: Some One <info@mywebsitename.com>\r\n";
$header .= "From: Some One <mywebsitename@web.com>\r\n";
$header .= "Organization: My Organization\r\n";
$header .= "Content-Type: text/plain\r\n";
mail("info@mywebsitename.com", $to,$subject, $msg, $headers); ?>
The last line is line 15 and I think something's wrong with that. I added $header lines after reading some article on line http://www.transio.com/content/how-pass-spam-filters-php-mail
PLEASE HELP. I'm very new to the PHP and MY HEAD IS ABOUT TO EXPLODE