Re: I have a problem with nobody! SOLVED!

From: Date: Sun, 17 Jun 2007 11:56:36 +0000
Subject: Re: I have a problem with nobody! SOLVED!
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-257210@lists.php.net to get a copy of this message
tedd wrote: >> The last paragraph of the page >> >> Go figure! >> >> The appropriate code is; >> >> mail ($to, $subject, $message, $header = 'From: "Larry, Curly and Moe" >> <info@domain.com>'); > > Brad: > > Don't forget to add the content. > > mail($to, $subject, $headers, $body); Headers and body should be the other way around. > And you can also add "Reply-to: " > > Such as: > > $headers ='From: "Larry, Curly and > Moe"<info@domain.com>')>\n"; > $headers .= 'Reply-to: "Moe"<justmoe@domain.com>' >\n"; Strictly speaking, those line endings should be \r\n. > And, IF you are permitted to use the fifth parameter: > > $extra = "-f" . $fromAddress; > > mail($to, $subject, $headers, $body, $extra); > > or > > ini_set('sendmail_from', 'real_return_path@domain.com'); > mail($to, $subject, $headers, $body); AFAIK, the sendmail_from setting only has an effect when running on Win32. -Stut

« previous php.general (#257210) next »