Posted by Jasper Bryant-Greene on 11/12/05 23:00
Bruce Gilbert wrote:
> I don't suppose you meant like this : $headers = "From: $sender";("\r\n").
> or is it without the ( )?
I think you should read up on some basic PHP syntax (the manual is your
friend. He meant like this:
$headers = "From: $sender\r\n";
$headers .= "Reply-To: $reply_to\r\n";
and so on. If the headers are all on one line then the MTAs and mail
clients have no way of telling them apart.
Jasper
> On 11/12/05, Marco Kaiser <marco.kaiser@gmail.com> wrote:
>> Hi,
>>
>> try to add in your $headers linebreaks. ("\r\n").
>>
>> -- Marco
>>
>>> $headers = "From: $sender";
>>> $headers .= "Reply-To: $reply_to";
>>> $headers .= "Return-Path: $return_path";
>>> $headers .= "X-Sender: $x_sender";
>>> $headers .= "X-Mailer: PHP4\n"; //mailer
>>> $headers .= "X-Priority: 3\n"; //1 UrgentMessage, 3 Normal
>>> $headers .= "Mime-Version:1.0\n Content-Type: text/plain;
>>> charset=\"iso-8859-1\nContent-Transfer-Encoding: 8bit\n";
>
>
> --
> ::Bruce::
>
[Back to original message]
|