Re: I have a problem with nobody! SOLVED!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>');
> 
> 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@xxxxxxxxxx>')>\n";
> $headers .= 'Reply-to: "Moe"<justmoe@xxxxxxxxxx>' >\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@xxxxxxxxxx');
> mail($to, $subject, $headers, $body);

AFAIK, the sendmail_from setting only has an effect when running on Win32.

-Stut

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux