Re: Re: emailing MySQL list not working

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

 



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@xxxxxxxxx> 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::


--
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