Re: PHP Mail from localhost.localdomain
| From: | Jason | Date: | Tue, 28 Nov 2000 16:12:16 +0000 |
| Subject: | Re: PHP Mail from localhost.localdomain | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-27607@lists.php.net to get a copy of this message | ||
On Mon, Nov 27, 2000 at 11:43:31PM -0800, Jacob W Anderson wrote:
> Hi!
>
> For some odd reason, whenever I send email using PHP 4.03pl1 from my Linux
> 6.2/Apache box, it's always addressed "from" nobody@localhost.localdomain.
> wierd. if I run it from my WinNT 4 machine, the email comes out correct
> each time.
>
> Is there a configuration problem with my PHP installation on the Linux box,
> or is this a problem with the sendmail installation??
>
The other suggestions are good, but the reason this is happening is because
your Linux hostname isn't set. if you check out /etc/hosts, you'll probably
see a line like:
127.0.0.1 localhost.localdomain
and nothing else.
You should properly set up your hostname, hosts file, and /etc/resolv.conf
file.
--
Jason Burnett
jason@jnj.org
That which does not kill me postpones the inevitable.