RE: [PHP] Mail
| From: | Will | Date: | Sun, 14 Mar 2004 19:49:39 +0000 |
| Subject: | RE: [PHP] Mail | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-180397@lists.php.net to get a copy of this message | ||
Thank you very much!!! That was it!!!!
~WILL~
-----Original Message-----
From: Jason Davidson [mailto:jdavidson@zworg.com]
Sent: Sunday, March 14, 2004 2:40 PM
To: Will
Cc: php-general@lists.php.net
Subject: Re: [PHP] Mail
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" <will.w@earthlink.net> 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 .= "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~
>
> --
> 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