Re: mail function

From: Date: Sun, 05 May 2002 22:59:39 +0000
Subject: Re: mail function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-96190@lists.php.net to get a copy of this message
Diana Castillo wrote: Diana Castillo wrote:
Hi, if I use the mail function, as in : mail("joecool@example.com", "My Subject", "Line 1\nLine 2\nLine 3"); The mail comes from "Webserver" How can I change the from ?
Just as the manual says, the 4th parameter which is optional allows you to specify additional headers. Try mail("joecool@example.com", "My Subject", "Line 1\nLine 2\nLine 3","From: user@domain");

« previous php.general (#96190) next »