Re: mail function and headers

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

 



ok, so this is what i got and it is still remaining... :-(

Received: from serdev ([127.0.0.1]) by home.com with MailEnable ESMTP; Wed,
> 12 Mar 2008 16:40:18 +0100
> Date: Wed, 12 Mar 2008 16:40:18 +0100
> Subject: subject 3
> To: mymail@xxxxxxx
> From: raf, news <news.raf@xxxxxxxxx>
> Reply-To: news.raf@xxxxxxxxx
> Return-Path: <webmaster@xxxxxxxxxxxxxxxxxx>
> X-Mailer: PHP/5.2.4
> MIME-Version: 1.0
> Content-type: text/plain; charset=iso-8859-1
> Content-Transfer-encoding: 7bit
>

as you can see my Return-Path is still pointing on the wrong direction :-(
any other idea ?

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

[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