Re: Re: emailing MySQL list not working

From: Date: Sat, 12 Nov 2005 21:00:53 +0000
Subject: Re: Re: emailing MySQL list not working
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-225681@lists.php.net to get a copy of this message
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::


« previous php.general (#225681) next »