Fwd: mail function and headers

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

 



ok i will try... what about UTF-8 to ensure unicode ?
my website and especially the form which will send this email, will be
filled in by several nationalities... spanish, english, french, slovak,
german,,...
so isn't it easier to set up utf-8 ?

A.


On Wed, Mar 12, 2008 at 4:11 PM, spacemarc <spacemarc@xxxxxxxxx> wrote:

> 2008/3/12, Daniel Brown <parasane@xxxxxxxxx>:
> >     You have the From: header parameters reversed.  Try this:
> >
> >  <?
> >  $headers  = "From: ".$fromname." <".$email.">\r\n";
> >  $headers .= "Reply-To: ".$email."\r\n";
> >  $headers .= "X-Mailer: PHP/".phpversion()."\r\n";
> >  /*
> >     ....
> >  */
> >  ?>
>
> you can add these headers:
>
> $header = "From: $fromname<$email>\n";
> $header .= "Reply-To: $email\n";
> $header .= "Return-Path: <$email>\n";
> $header .= "X-Mailer: PHP/" . phpversion() . "\n";
> $header .= "MIME-Version: 1.0\n";
> $header .= "Content-type: text/plain; charset=iso-8859-1\n";
> $header .= "Content-Transfer-encoding: 7bit\n";
>
> Try it.
>
> --
> Scripts: http://www.spacemarc.it
>



-- 
Alain
------------------------------------
Windows XP SP2
PostgreSQL 8.2.4 / MS SQL server 2005
Apache 2.2.4
PHP 5.2.4
C# 2005-2008



-- 
Alain
------------------------------------
Windows XP SP2
PostgreSQL 8.2.4 / MS SQL server 2005
Apache 2.2.4
PHP 5.2.4
C# 2005-2008

[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