From: "Chris W" <[EMAIL PROTECTED]>

> I'm not sure if this is a PHP, Apache, Network, or sendmail
> configuration but hopefully someone here will know.
>
> When I send email with PHP the from header is
>
> [EMAIL PROTECTED]
>
> I can't run a real mail server on my machine, so I want to change that
> email address to something else.  What config file do I need to look at
> to do this?

The last parameter of mail() allows you to specify additional headers.Use it
to set a From header.

$headers = "From: [EMAIL PROTECTED]";

mail($to,$subject,$msg,$headers);

---John Holmes...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to