MAIL ()
Posted: Fri Jan 04, 2008 8:22 am
Hi I am having some problems using the mail function with a form. I am getting this error message:
Warning: mail() [function.mail]: SMTP server response: 501 unacceptable mail address in ...
Here is my code($msg is defined elsewhere)
and also I know the $e var is working because I echo it and it looks fine.
I don't kow whats wrong please help!
Thanks - Goldberg
Warning: mail() [function.mail]: SMTP server response: 501 unacceptable mail address in ...
Here is my code($msg is defined elsewhere)
Code: Select all
$e =$_POST[email];
$headers="From: ".$e."\n"
. "Content-Type: text/plain; charset=$charset; format=flowed\n"
. "MIME-Version: 1.0\n"
. "Content-Transfer-Encoding: 8bit\n"
. "X-Mailer: PHP\n";
mail("theiblis11@gmail.com","funding questionare",$msg,$headers);I don't kow whats wrong please help!
Thanks - Goldberg