September 24, 2010 08:24AM
those seems to be headers sent by your MTA, such as postfix.

set servername related parameters of postifx accordingly.



On Fri, Sep 24, 2010 at 12:48 PM, Frank R. <fandaremail@gmail.com> wrote:
> I am using CakePHP framework, so I set this variables:
>                $this->Email->from = Configure::read('Site.noreplyemail');
>                $this->Email->return = Configure::read('Site.noreplyemail');
>                $this->Email->replyTo=Configure::read('Site.noreplyemail');
> where Configure::read('Site.noreplyemail') is the email address
>
> But this didnt changed all the address in header. The email header is below:
>
> Delivered-To: fandaremail@gmail.com
> Received: by 10.204.121.3 with SMTP id f3cs5634bkr;
>        Fri, 24 Sep 2010 02:43:02 -0700 (PDT)
> Received: by 10.100.154.3 with SMTP id b3mr3322700ane.245.1285321381720;
>        Fri, 24 Sep 2010 02:43:01 -0700 (PDT)
> Return-Path: <nginx@mydomain>
> Received: from mydomain (mail.mydomain.com [xxx.xxx.xxx.xxx])
>        by mx.google.com with ESMTP id d19si4617117and.113.2010.09..24.02.43.01;
>        Fri, 24 Sep 2010 02:43:01 -0700 (PDT)
> Received-SPF: neutral (google.com: xxx.xxx.xxx.xxx is neither
> permitted nor denied by best guess record for domain of
> nginx@mydomain) client-ip=xxx.xxx.xxx.xxx;
> Authentication-Results: mx.google.com; spf=neutral (google.com:
> xxx.xxx.xxx.xxx is neither permitted nor denied by best guess record
> for domain of nginx@mydomain) smtp.mail=nginx@mydomain
> Received: from nginx by mydomain with local (Exim 4.63)
>        (envelope-from <nginx@mydomain>)
>        id 1Oz4o1-0000Bd-4h
>        for fandaremail@gmail.com; Fri, 24 Sep 2010 09:43:01 +0000
> To: fandaremail@gmail.com
> Subject:  Account Activation
> From: no-reply@mydomain.com
> Reply-To: no-reply@mydomain.com
> X-Mailer: CakePHP Email Component
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: 7bit
> Message-Id: <E1Oz4o1-0000Bd-4h@mydomain>
> Sender: Nginx user <nginx@mydomain>
> Date: Fri, 24 Sep 2010 09:43:01 +0000
>
>
> 2010/9/24 bvidinli <bvidinli@gmail.com>:
>> php code:
>> mail("toemail@domain.com","subject","messagecontents","From: who@me.com");
>>
>> so, headers is a php issue, and can be set in php mail function.
>> http://php.net/manual/en/function.mail.php
>>
>>
>> Bahattin,
>> ehcp Developer
>>
>> On Fri, Sep 24, 2010 at 12:06 PM, Frank R. <fandaremail@gmail.com> wrote:
>>> Hello, all emails, which I send from PHP mail() have the header like:
>>>
>>> Received: from nginx by localhost with local (Exim 4.63)
>>>        (envelope-from <nginx@localhost>)
>>>
>>> How I can change the address to something like noreply@domain.com there?
>>>
>>> Thank You
>>>
>>> _______________________________________________
>>> nginx mailing list
>>> nginx@nginx.org
>>> http://nginx.org/mailman/listinfo/nginx
>>>
>>
>> _______________________________________________
>> nginx mailing list
>> nginx@nginx.org
>> http://nginx.org/mailman/listinfo/nginx
>>
>
>
>
> --
> FandaR-IT - Server administration and programming
> http://fandar-it.com
> MSN: fandar@seznam.cz
> ICQ: 217613557
> GTalk: fandaremail@gmail.com
> Yahoo: fandar2
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Howto change email header in emails send from PHP

Frank R. September 24, 2010 05:10AM

Re: Howto change email header in emails send from PHP

bvidinli September 24, 2010 05:26AM

Re: Howto change email header in emails send from PHP

Frank R. September 24, 2010 05:52AM

Re: Howto change email header in emails send from PHP

bvidinli September 24, 2010 08:24AM

Re: Howto change email header in emails send from PHP

Frank R. September 24, 2010 10:20AM

Re: Howto change email header in emails send from PHP

António P. P. Almeida September 24, 2010 10:34AM

Re: Howto change email header in emails send from PHP

Maxim Dounin September 24, 2010 07:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 349
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready