You may be adding the To: header but the receiving MX doesn't care about
that. It is the envelope RCPT TO: header that counts.

You probably have something like this:

mail ($to, $subject, $message, $additional_headers);

where $to is mateusz@DOMAIN and $additional_headers contains 'To: Krzysiek
<krzysiek@DOMAIN>'


On Mon, Aug 25, 2014 at 9:57 PM, Krzysztof Rosiński <rose...@gmail.com>
wrote:

> Hi, I'm looking for help with one issue.
>
>
> I'm trying to send email using php script from one gmail account 
> 'INTERNAL@DOMAIN' to another 'krzysiek@DOMAIN' (DOMAIN is our company 
> address). The 'krzysiek@DOMAIN' is included in the 'To' header and I don't 
> add any Cc, Bcc.
>
>
> The issue is that the email is send to totally different account in the same 
> domain 'mateusz@DOMAIN', this is shown in the 'Received' hader below. Do you 
> have any suggestion how can I fix this problem, please?
>
>
> Kind Regards,
>
>
> Krzysiek Rosinski
>
>
> *Return-Path: <INTERNAL@DOMAIN>
> Received: from localhost (HOST. [IP])
>         by mx.google.com <http://mx.google.com> with ESMTPSA id ID
>         for <mateusz@DOMAIN>
>         (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
>         Mon, 25 Aug 2014 12:27:49 -0700 (PDT)
> Message-ID: <i...@mx.google.com <i...@mx.google.com>>
> Date: Mon, 25 Aug 2014 12:27:49 -0700 (PDT)
> MIME-Version: 1.0
> From: INTERNAL <INTERNAL@DOMAIN>
> X-Sender: <INTERNAL@DOMAIN>
> X-Mailer: PHP
> Content-Type: multipart/mixed; boundary=cfdc68da5e0b1d90912aec7553ae78f7
> Subject: SUBJECT
> To: Krzysiek <krzysiek@DOMAIN>
> *
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Gmail-Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to gmail-users+unsubscr...@googlegroups.com.
> To post to this group, send email to gmail-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/gmail-users.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Marko

-- 
You received this message because you are subscribed to the Google Groups 
"Gmail-Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to gmail-users+unsubscr...@googlegroups.com.
To post to this group, send email to gmail-users@googlegroups.com.
Visit this group at http://groups.google.com/group/gmail-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to