PHPMailer: Mail is not going to in-reply-to, creating new mail

187 Views Asked by At

I am trying to send two mails from PHPMailer, First mail and second is reply mail, but second mail is always creating the new mail. First mail Message-ID is present in second mail In-Reply-To and References, but second mail is always creating the new mail, I don't know why.

First Mail Header->

Return-Path: [email protected]
Received: from mail13.domain.com (LHLO mail13.domain.com)
 (163.172.44.78) by mail13.domain.com with LMTP; Tue, 17 Sep 2019
 16:11:02 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
    by mail13.domain.com (Postfix) with ESMTP id 52B232A809CD
    for <[email protected]>; Tue, 17 Sep 2019 16:11:02 +0200 (CEST)
X-Virus-Scanned: amavisd-new at mail13.domain.com
X-Spam-Flag: NO
X-Spam-Score: -2.603
X-Spam-Level:
X-Spam-Status: No, score=-2.603 required=6.6 tests=[BAYES_00=-1.9,
    HTML_MESSAGE=0.001, MIME_HTML_ONLY=0.723, RP_MATCHES_RCVD=-1.426,
    SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail13.domain.com ([127.0.0.1])
    by localhost (mail13.domain.com [127.0.0.1]) (amavisd-new, port 10024)
    with ESMTP id pbpvDduZvioo for <[email protected]>;
    Tue, 17 Sep 2019 16:09:44 +0200 (CEST)
Received: from mail11.domain.com (mail11.domain.com [51.15.189.154])
    by mail13.domain.com (Postfix) with ESMTP id 211282A809C5
    for <[email protected]>; Tue, 17 Sep 2019 16:09:39 +0200 (CEST)
Received: from smtp.domain.com (smtp.domain.com [37.187.47.173])
    by mail11.domain.com (Postfix) with ESMTP id A02CC4608A7
    for <[email protected]>; Wed, 31 Jan 2018 07:37:29 +0100 (CET)
Received: from www.newdomain.com (136.ip-51-38-231.eu [51.38.231.136])
    (Authenticated sender: [email protected])
    by smtp.domain.com (Postfix) with ESMTPSA id 037AE236A39B
    for <[email protected]>; Tue, 17 Sep 2019 16:09:36 +0200 (CEST)
Date: Tue, 17 Sep 2019 16:09:35 +0200
To: [email protected]
From: [email protected]
Subject: First Notification
Message-ID: <[email protected]>
X-Mailer: PHPMailer 6.0.7 (https://github.com/PHPMailer/PHPMailer)
Reply-To: [email protected]
X-Original-To: [email protected]
Delivered-To: [email protected]
MIME-Version: 1.0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

Second Mail Header ->

Return-Path: [email protected]
Received: from mail13.domain.com (LHLO mail13.domain.com)
 (163.172.44.78) by mail13.domain.com with LMTP; Tue, 17 Sep 2019
 16:11:10 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
    by mail13.domain.com (Postfix) with ESMTP id E81102A809C5
    for <[email protected]>; Tue, 17 Sep 2019 16:11:09 +0200 (CEST)
X-Virus-Scanned: amavisd-new at mail13.domain.com
X-Spam-Flag: NO
X-Spam-Score: -0.975
X-Spam-Level:
X-Spam-Status: No, score=-0.975 required=6.6 tests=[BAYES_00=-1.9,
    HTML_IMAGE_ONLY_24=1.618, HTML_MESSAGE=0.001, MIME_HTML_ONLY=0.723,
    RP_MATCHES_RCVD=-1.426, SPF_PASS=-0.001, T_REMOTE_IMAGE=0.01]
    autolearn=no autolearn_force=no
Received: from mail13.domain.com ([127.0.0.1])
    by localhost (mail13.domain.com [127.0.0.1]) (amavisd-new, port 10024)
    with ESMTP id KIORCI_oHPZE for <[email protected]>;
    Tue, 17 Sep 2019 16:09:50 +0200 (CEST)
Received: from mail11.domain.com (mail11.domain.com [51.15.189.154])
    by mail13.domain.com (Postfix) with ESMTP id 232072A809C6
    for <[email protected]>; Tue, 17 Sep 2019 16:09:39 +0200 (CEST)
Received: from smtp.domain.com (smtp.domain.com [37.187.47.173])
    by mail11.domain.com (Postfix) with ESMTP id 9EB284608B8
    for <[email protected]>; Wed, 31 Jan 2018 07:37:30 +0100 (CET)
Received: from www.newdomain.com (136.ip-51-38-231.eu [51.38.231.136])
    (Authenticated sender: [email protected])
    by smtp.domain.com (Postfix) with ESMTPSA id 035F9236A39B
    for <[email protected]>; Tue, 17 Sep 2019 16:09:37 +0200 (CEST)
Date: Tue, 17 Sep 2019 16:09:36 +0200
To: [email protected]
From: [email protected]
Subject: Second Notification
Message-ID: <[email protected]>
X-Mailer: PHPMailer 6.0.7 (https://github.com/PHPMailer/PHPMailer)
Reply-To: [email protected]
X-Original-To: [email protected]
Delivered-To: [email protected]
References: <[email protected]>
In-Reply-To: <[email protected]>
MIME-Version: 1.0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
0

There are 0 best solutions below