Check the manual to be sure, but it appears that you have the arguments
for the mail function in the wrong order .
mail(to, subject, msg, headers) ... i beleive is the correct order.
Jason
"Will" <[EMAIL PROTECTED]> wrote:
>
> 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 .= "[EMAIL PROTECTED], $_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~
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php