Re: mail function and headers

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

 



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

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