| From: | Will | Date: | Sun, 14 Mar 2004 19:31:15 +0000 |
| Subject: | |||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-180395@lists.php.net to get a copy of this message | ||
Hello All,
I am having a problem with sending a reply from a form. It is giving me a
550 error: There is no valid sender in any header line.
My form is:
<?
include ("inc/setup.php");
// Mail reply to Orginial poster
$recipient .= "support@domainn.com, $_POST[email]\n";
$mailheaders .= "To: $_POST[email]\n";
$mailheaders .= "From: $_POST[email]\n";
$subject .= "$_POST[subject]";
$msg .= "Please do not reply to this email!!!\n\n";
$msg .= "Here is our answer: \r$_POST[message]\n\n";
$msg .= "Please use your username/password that was assigned to you.\n\n";
mail($recipient, $mailheaders, $subject, $msg);
$add_reply = "INSERT into $table_name25 values ('', now(),
'$_POST[subject]', '$_POST[name]',
'$_POST[email]', '$_POST[message]')";
mysql_query($add_reply,$conn) or die(mysql_error());
header("Location: support_archive.php");
exit;
?>
And when I recieive the one email there are no from and reply to in the
email client. Plus it is in the subject line!!! What the heck am I doing
wrong???
Thanks in advance,
~WILL~