[PHP] sending mail with php on a linux box

2004-04-16 Thread Chris W
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?

Chris W

http://thewishzone.com:8086

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


Re: [PHP] sending mail with php on a linux box

2004-04-16 Thread John Nichel
Chris W wrote:
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?

Chris W

http://thewishzone.com:8086

Even if you throw a From : in the headers with the mail() function?

http://us4.php.net/manual/en/function.mail.php

--
***
*  _  __   __  __   _  * John  Nichel *
* | |/ /___ __ \ \/ /__ _ _| |__ ___  __ ___ _ __  * 716.856.9675 *
* | ' / -_) _` \ \/\/ / _ \ '_| / /(_-_/ _/ _ \ '  \ * 737 Main St. *
* |_|\_\___\__, |\_/\_/\___/_| |_\_\/__(_)__\___/_|_|_|* Suite #150   *
*  |___/   * Buffalo, NY  *
* http://www.KegWorks.com[EMAIL PROTECTED] * 14203 - 1321 *
***
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] sending mail with php on a linux box

2004-04-16 Thread John W. Holmes
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