RE: [PHP-DB] Mail seems to come from nobody@myhost
| From: | Galvin, Max | Date: | Thu, 16 Nov 2000 15:30:31 +0000 |
| Subject: | RE: [PHP-DB] Mail seems to come from nobody@myhost | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-4470@lists.php.net to get a copy of this message | ||
It's not really a database question but:
<?
$email_to = "someone@somehost.com";
$subject = "my subject";
$message = "Some message";
$from = "From: someotherperson@anotherhost.com";
mail($email_to, $subject, $message, $from);
?>
The from field is taken care of by a 4th argument for the mail() function
which is also good for all additional headers.
M
> ----------
> From: Hadinata[SMTP:lisa77@mitra.net.id]
> Sent: 16 November 2000 14:56
> To: mitul@mitul.com; niko@nnyman.com; paul@pilat.com;
> skillick@netexpress.net
> Cc: php-db@lists.php.net
> Subject: [PHP-DB] Mail seems to come from nobody@myhost
>
> Hi,
> When I send email through PHP's mail statement,
> the mail seems to come from nobody@myhost.
> How can I avoid this? My server use exim (instead
> of qmail or sendmail).
>
> Thanks,
> Joseph
>