RE: [PHP] mail and from line overriding
| From: | Jonathan Rosenberg \(Tabby's Place\) | Date: | Sat, 16 Nov 2002 04:05:42 +0000 |
| Subject: | RE: [PHP] mail and from line overriding | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-124685@lists.php.net to get a copy of this message | ||
You need to change the first statement to
$from = "From: w@abc.com";
--
JR
> -----Original Message-----
> From: Frank Wang [mailto:wang960@yahoo.com]
> Sent: Friday, November 15, 2002 10:15 AM
> To: php-general@lists.php.net
> Subject: [PHP] mail and from line overriding
>
>
> Hi,
>
> I have something like following:
>
> $from = "w@abc.com";
> $email = "w@xyz.com";
> $msg = "abcde";
>
> mail($email, $subj, $msg, $from);
>
> the message sent always has the 'from' line taken from php.ini, not $from,
> is there a way to override this ? Thanks.
>
> Frank
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>