You are here: Re: [PHP] Re: emailing MySQL list not working « PHP « IT news, forums, messages
Re: [PHP] Re: emailing MySQL list not working

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация