AddAttachment PHPmailer, email sended in blank - phpmailer

let me put my problem, i hope someone can helpme.
I have a system to send my envoices using phpmailler, so when I send an email with AddAttachment I receive a email without show it body, when i send an email without an AddAttachment i receive normaly.
Let me show you:
A Code from email with AddAttachment
Return-path: <financeiro#ctinformatica.com.br>
Envelope-to: financeiro#codetek.com.br
Delivery-date: Fri, 19 May 2017 11:12:00 -0300
Received: from server01.heytec.com.br ([162.144.222.173]:36833 helo=www.heytec.com.br)
by server01.heytec.com.br with esmtpa (Exim 4.85)
(envelope-from <financeiro#ctinformatica.com.br>)
id 1dBidM-0007MI-GB
for financeiro#codetek.com.br; Fri, 19 May 2017 11:12:00 -0300
Date: Fri, 19 May 2017 11:12:00 -0300
To: financeiro#codetek.com.br
From: CT Informatica <financeiro#ctinformatica.com.br>
Subject: Sua Fatura Chegou!
Message-ID: <7c04d9e16a4d9a705b436f34c72b64ca#www.heytec.com.br>
X-Priority: 3
X-Mailer: PHPMailer [version 1.73]
MIME-Version: 1.0
Content-type: text/html; charset=iso-8859-1From: CT Informatica <financeiro#ctinformatica.com.br>
Reply-To: financeiro#ctinformatica.com.br
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="b1_7c04d9e16a4d9a705b436f34c72b64ca"
X-From-Rewrite: unmodified, already matched
--b1_7c04d9e16a4d9a705b436f34c72b64ca
Content-Type: text/html; charset = "iso-8859-1"
Content-Transfer-Encoding: 8bit
<table style="border: 1px solid #33679a; font-family: Calibri; font-size: 16px; color: #1b1a17; height: 582px;" width="812" cellspacing="0" cellpadding="10" align="center">
<tbody>
<tr><td>MY SIMPLE HTML</td></tr>
</tbody>
</table>
--b1_7c04d9e16a4d9a705b436f34c72b64ca
Content-Type: application/octet-stream; name="boleto-1253172.pdf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="boleto-1253172.pdf"
BLA BLA BLA PDF Encoding TEXT FROM PDF
--b1_7c04d9e16a4d9a705b436f34c72b64ca--
A CODE WITHOUT AddAttachment
Return-path: <financeiro#ctinformatica.com.br>
Envelope-to: financeiro#codetek.com.br
Delivery-date: Fri, 19 May 2017 11:33:54 -0300
Received: from server01.heytec.com.br ([162.144.222.173]:37764 helo=www.heytec.com.br)
by server01.heytec.com.br with esmtpa (Exim 4.85)
(envelope-from <financeiro#ctinformatica.com.br>)
id 1dBiyX-0003Fd-Qd
for financeiro#codetek.com.br; Fri, 19 May 2017 11:33:53 -0300
Date: Fri, 19 May 2017 11:33:53 -0300
To: financeiro#codetek.com.br
From: CT Informatica <financeiro#ctinformatica.com.br>
Subject: Sua Fatura Chegou!
Message-ID: <659d0adfa80994b156e9803bb3f84884#www.heytec.com.br>
X-Priority: 3
X-Mailer: PHPMailer [version 1.73]
MIME-Version: 1.0
Content-type: text/html; charset=iso-8859-1From: CT Informatica <financeiro#ctinformatica.com.br>
Reply-To: financeiro#ctinformatica.com.br
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/html; charset="iso-8859-1"
X-From-Rewrite: unmodified, already matched
<table style="border: 1px solid #33679a; font-family: Calibri; font-size: 16px; color: #1b1a17; height: 582px;" width="812" cellspacing="0" cellpadding="10" align="center">
<tbody>
<tr><td>MY SIMPLE HTML</td></tr>
</tbody>
</table>
Lookslike when I put the AddAttachment in my code i have a problem.
when I go check my email received i got
nothing, even the Attachment I can´t see.
check my send code
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1";
$headers .= "From: $ln_letter[car_remetente] <$ln_letter[car_fromemail]>\n";
$headers .= "Reply-To: $ln_letter[car_fromemail]\n";
$mail = new PHPMailer();
$mail->SetLanguage("br", "language/");
$mail->From = $ln_letter[car_fromemail];
$mail->FromName = $ln_letter[car_remetente];
$mail->Host = "mail.heytec.com.br";
$mail->Mailer = "smtp";
$mail->AddAddress($destinatario);
$mail->AddCustomHeader($headers);
$mail->Subject = $subject;
$mail->isHTML(true);
$mail->Body = $body;
$mail->SMTPAuth = true;
$mail->Username = $ln_letter[car_fromemail];
$mail->Password = $senha_email;
$mail->AddAttachment($arrayanexos[$i]);
$mail->Send()
I have no idea what it is this problem =(
and sorry about the english.

Related

Encoding issues in Azure WebApps

I'm trying to download an Excel file from my web page. In the local environment, everything works fine. But in Azure the encoding of the file name gets screwed up. I have already set the globalization tag in web.config as follows:
<globalization fileEncoding="utf-8" requestEncoding="utf-8" responseEncoding="utf-8"/>
Here is how the response is built:
string name = v_NomeArquivo + ".xlsx";
Response.Clear();
Response.ClearContent();
Response.ClearHeaders();
Response.Buffer = true;
Response.ContentType = "application/ms-excel";
Response.AddHeader("content-disposition", "attachment; filename=" + name);
Response.BinaryWrite(v_ExcelPackage.GetAsByteArray());
Response.End();
The headers on Azure:
cache-control: private
content-disposition: attachment; filename=Relatório Contrato Limpeza e Higinenização - 2020-10-06_10-55-26.xlsx
content-type: application/ms-excel
date: Tue, 06 Oct 2020 13:55:26 GMT
server: Microsoft-IIS/10.0
status: 200
x-aspnet-version: 4.0.30319
x-powered-by: ASP.NET
And on local:
Cache-Control: private
content-disposition: attachment; filename=Relatório Contrato Limpeza e Higinenização - 2020-10-06_10-58-59.xlsx
Content-Type: application/ms-excel
Date: Tue, 06 Oct 2020 13:58:59 GMT
Server: Microsoft-IIS/10.0
Transfer-Encoding: chunked
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
The only difference is the filename getting messed up and the Transfer-Encoding, could it be it?
You need to use System.Web.HttpUtility.UrlEncode method.
Ex:
string name = System.Web.HttpUtility.UrlEncode(v_NomeArquivo + ".xlsx", System.Text.Encoding.UTF8);

InvalidParameterValue: Duplicate header 'Content-Transfer-Encoding'

when I am trying to send an attachment with an email I got this error can anyone tell me what am I doing wrong here is the code which i have tried
var payload = `From: 'Amarjeet Singh' <${sender}>
To: ${recipient}
Subject: AWS SES Attachment
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=7f1a313ee430f85a8b054f085ae67abd6ee9c52aa8d056e7f7e19c6e2887
--NextPart
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
This is the <b>body</b> of the email.
--7f1a313ee430f85a8b054f085ae67abd6ee9c52aa8d056e7f7e19c6e2887
Content-Type: application/json; charset=UTF-8;
Content-Disposition: attachment; filename="colors.json"
Content-Transfer-Encoding: base64
${file}
--NextPart--`;
var params = {
RawMessage: {
Data: payload
},
Source: "xyz#gmail.com"
};
If you are using AWS SES your payload has two issues, first your boundary is different, and second just keep in mind the line breaks, your string template should be like this:
var payload = `From: 'Amarjeet Singh' <${sender}>
To: ${recipient}
Subject: AWS SES Attachment
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=7f1a313ee430f85a8b054f085ae67abd6ee9c52aa8d056e7f7e19c6e2887
--7f1a313ee430f85a8b054f085ae67abd6ee9c52aa8d056e7f7e19c6e2887
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
This is the <b>body</b> of the email.
--7f1a313ee430f85a8b054f085ae67abd6ee9c52aa8d056e7f7e19c6e2887
Content-Type: application/json; charset=UTF-8;
Content-Disposition: attachment; filename="colors.json"
Content-Transfer-Encoding: base64
${file}
--7f1a313ee430f85a8b054f085ae67abd6ee9c52aa8d056e7f7e19c6e2887--`;

AMP email is not being shown on GMAIL when sending it from AWS SES

When trying to see AMP mail that received from AWS SES using a python script - I'm able to see only the HTML part and not the AMP part. I'm using Gmail on a web/desktop (not mobile).
I've been able to get emails from the Gmail amp playground (https://amp.gmail.dev/playground/) but no from my domain (using the developer options for my domain).
I've been qualified for the pre-requirements, such as DKIM, DMARC, and SPF for my domain - I've attached a screenshot for this qualification.
I've made sure that my mail contains only the minimal AMP content, and the MIME tree is organized in good order (the AMP appears before the HTML).
This is the mail that I'm getting on Gmail:
Delivered-To: XXXXXX
Received: by 2002:adf:a2ce:0:0:0:0:0 with SMTP id t14csp9667034wra;
Wed, 24 Jul 2019 00:50:42 -0700 (PDT)
X-Google-Smtp-Source: APXvYqwL5fGpFWN69lea/kepakqVoHfUbXMCm3R8pyGZW6SRJECQp/PJWL0TCVXLGPJH12TGQjPR
X-Received: by 2002:a50:e618:: with SMTP id y24mr69652549edm.142.1563954642448;
Wed, 24 Jul 2019 00:50:42 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1563954642; cv=none;
d=google.com; s=arc-20160816;
b=UIjwFXJ2f8uivW5CMliod/HeaqPgDEoPrLbJrGP1poPzSts/Ifv4asIs2Z5S1/oh5k
vKkAijZY38K6osr/Vh6cYhQSl2mAX8PAj5yqsrcEqJJxpQK0WZ43LBvhw5yVCe/20xnm
40XtgTp0pc2tQBnAxmMwdQs4/OebZx418KBGfoN3ZKStMU6S1vC69uadG3sQKyS9DfZ7
ioQh8rooPSPYBqVGO80jfwx2p5XldxFyfPsmks7H+jIAFMov7i6Z4qA14GtBMwiHt13E
5IgAtTDQneCR02krKwUCygYqYA1BU7U5F1wmNLUBQgfHgTSQwHRDv3HUIJVr4OwflMAx
SMkg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
h=feedback-id:date:message-id:to:from:subject:mime-version
:dkim-signature:dkim-signature;
bh=u8zKbqJArDsMg9NesmbsCH3q/TsRUKtAsLWu0QFVgOk=;
b=zIaivJ+RHM+PI6cjXZ/qTgh4Jl1caUIrdM8ljwaH8x9DrQzZFiLBlKzdKVjoPNnaa8
EIdn/+wIuPfvv7p02Gk4J71s41/Y3we6QIhsi9ZT7OGqopLb8fkcsqKLD4eD39MGfWOa
cpfWPLW+B8UqO9v2gKRLn622Y4XYtH8flYZSfOftMqd1fboTz9vMY5L+clYttZLyUIdn
0F59JyIB3oVtqqAqgfNje6ikbQvmGNxGob6UhUHt0EKQ7cS83S0NnV/P7KLtzQL17ld3
iFN3QgyPDJlNz44G4YR2S220pD8EyXj+Btz/gi9omqml+moLnWKwGTZx97lFlnfDYp2O
CXHA==
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=#amiramen.com header.s=kz7cgy5efrrjqoowmf3kdany4nxqx5im header.b=yPnbkTNf;
dkim=pass header.i=#amazonses.com header.s=ihchhvubuqgjsxyuhssfvqohv7z3u4hn header.b="Iv9/seaV";
spf=pass (google.com: domain of 0102016c22f5fbce-fbba54af-35b0-4791-8877-32699f0c9e58-000000#eu-west-1.amazonses.com designates 54.240.7.37 as permitted sender) smtp.mailfrom=0102016c22f5fbce-fbba54af-35b0-4791-8877-32699f0c9e58-000000#eu-west-1.amazonses.com;
dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amiramen.com
Return-Path: <0102016c22f5fbce-fbba54af-35b0-4791-8877-32699f0c9e58-000000#eu-west-1.amazonses.com>
Received: from a7-37.smtp-out.eu-west-1.amazonses.com (a7-37.smtp-out.eu-west-1.amazonses.com. [54.240.7.37])
by mx.google.com with ESMTPS id h3si44113583wrx.267.2019.07.24.00.50.42
for <mXXXXXX#gmail.com>
(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
Wed, 24 Jul 2019 00:50:42 -0700 (PDT)
Received-SPF: pass (google.com: domain of 0102016c22f5fbce-fbba54af-35b0-4791-8877-32699f0c9e58-000000#eu-west-1.amazonses.com designates 54.240.7.37 as permitted sender) client-ip=54.240.7.37;
Authentication-Results: mx.google.com;
dkim=pass header.i=#amiramen.com header.s=kz7cgy5efrrjqoowmf3kdany4nxqx5im header.b=yPnbkTNf;
dkim=pass header.i=#amazonses.com header.s=ihchhvubuqgjsxyuhssfvqohv7z3u4hn header.b="Iv9/seaV";
spf=pass (google.com: domain of 0102016c22f5fbce-fbba54af-35b0-4791-8877-32699f0c9e58-000000#eu-west-1.amazonses.com designates 54.240.7.37 as permitted sender) smtp.mailfrom=0102016c22f5fbce-fbba54af-35b0-4791-8877-32699f0c9e58-000000#eu-west-1.amazonses.com;
dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amiramen.com
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple;
s=kz7cgy5efrrjqoowmf3kdany4nxqx5im; d=amiramen.com; t=1563954642;
h=Content-Type:MIME-Version:Subject:From:To:Message-ID:Date;
bh=u8zKbqJArDsMg9NesmbsCH3q/TsRUKtAsLWu0QFVgOk=;
b=yPnbkTNfpn2pwgrkQMLEnU4/CGK+n+l9o1JAY0HRREmfweP9MVjXgKUTAJUbDSOC
htjTUMZkICok+YIbJQBE/1+E+Za5vBaA9EYxiM4lFFfMoQeLvQWQ3l5r8FJ5Dquzb+h
f/9E3oinynOL6JkGFDuASLVj8SBCWlaEEirGe6Uk=
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple;
s=ihchhvubuqgjsxyuhssfvqohv7z3u4hn; d=amazonses.com; t=1563954642;
h=Content-Type:MIME-Version:Subject:From:To:Message-ID:Date:Feedback-ID;
bh=u8zKbqJArDsMg9NesmbsCH3q/TsRUKtAsLWu0QFVgOk=;
b=Iv9/seaVrzV/GlvUAzt4ux3U4GEmK8mvSIzyMDZDCF+/Q9KGiN56gFGPlIyYskk3
5ENiJstFwKaOiSTEnyXgaCJAt6VxQlxsCwhvh2vKZIsT//p4d5ZDLv1PnuxkF78+e3i
MkLha3uWP+RD2ayol6NnqGa0psfPYqkNn3EyMp/k=
Content-Type: multipart/alternative; boundary="===============2017642074=="
MIME-Version: 1.0
Subject: Hey, Wizard! Check out this dynamic email. #2
From: team#amiramen.com
To: XXXXX#gmail.com
Message-ID: <0102016c22f5fbce-fbba54af-35b0-4791-8877-32699f0c9e58-000000#eu-west-1.amazonses.com>
Date: Wed, 24 Jul 2019 07:50:41 +0000
X-SES-Outgoing: 2019.07.24-54.240.7.37
Feedback-ID: 1.eu-west-1.sAWpWQT4Rmzt8hbl9MsPloIFHFP494ZwRbh0mXyiwjI=:AmazonSES
--===============2017642074==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
THVtb3MhIEluIHBsYWluIHRleHQu
--===============2017642074==
Content-Type: text/html; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
PGh0bWw+Cjxib2R5PgogIDxwPkV4cGVsbGlhcm11cyEgSW4gSFRNTC48L3A+CjwvYm9keT4KPC9o
dG1sPgo=
--===============2017642074==
Content-Type: text/x-amp-html; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
PCFkb2N0eXBlIGh0bWw+CjxodG1sID1FMj05QT1BMTRlbWFpbD4KPGhlYWQ+CiAgPG1ldGEgY2hh
cnNldD0zRCJ1dGYtOCI+CiAgPHNjcmlwdCBhc3luYyBzcmM9M0QiaHR0cHM6Ly9jZG4uYW1wcHJv
amVjdC5vcmcvdjAuanMiPjwvc2NyaXB0PgogIDxzdHlsZSBhbXA0ZW1haWwtYm9pbGVycGxhdGU+
Ym9keXt2aXNpYmlsaXR5OmhpZGRlbn08L3N0eWxlPgo8L2hlYWQ+Cjxib2R5PgogIEhlbGxvLCBB
TVA0RU1BSUwgd29ybGQuCjwvYm9keT4KPC9odG1sPgo=
--===============2017642074==--
I expecting to see the AMP part in my Gmail web-desktop client. What did I do wrong?

Use dkim in phpmailer code with privacy key

I am using PHPMailer.
I added DKIM attributes when sending file.
The code is like:
// $mail is PHPMailer class
$mail->SMTPAuth = true;
$mail->SMTPSecure = "ssl";
$mail->Host = "*******";
$mail->Port = ***;
$mail->Mailer= "SMTP";
//...
$mail->DKIM_domain = 'mydomain.com';
$mail->DKIM_identity = '#mydomain.com';
$mail->DKIM_private = __DIR__ . '/privacy_key_mydomain.txt';
$mail->DKIM_selector = 'default';
$mail->DKIM_passphrase = ''; // only ssl.
//...
(Same as example on: Send mail in phpmailer using DKIM Keys)
When sending to email, such as mine (gmail), I have no problem, and I see that my email is signed by mydomain.com.
I see also, in the email source that DKIM-Signature is sent.
Nevertheless, some of my clients I am sending emails reject my email, with following message (especially for yahoo emails - more that 90% of rejects uses yahoo for their emails).
554 Message not allowed - Headers are not RFC compliant[291]
As I did some workaround, I found this message to be detected as a spam.
I am using CPANEL for my site, which has round-cube - so I test it at round-cube (sending the customer a message with round-cube) - seems OK. No spam detect.
So, I suspect the privacy key file may be incorrect (I have an SSL site - so I use the same privacy key as my own site).
What may be wrong? What shall I check out in order to avoid my emails will be detected as spams?
Here is the email source result:
Delivered-To: myaccount#gmail.com
Received: by 10.114.75.12 with SMTP id y12csp118366ldv;
Tue, 15 Jul 2014 11:44:11 -0700 (PDT)
X-Received: by 10.140.104.49 with SMTP id z46mr36090427qge.74.1405449850437;
Tue, 15 Jul 2014 11:44:10 -0700 (PDT)
Return-Path: <support#mydomain.com>
Received: from lin9.maindomain10.net (lin9.maindomain10.net. [1.2.3.4])
by mx.google.com with ESMTPS id t14si21957304qac.66.2014.07.15.11.44.09
for <myaccount#gmail.com>
(version=TLSv1 cipher=RC4-SHA bits=128/128);
Tue, 15 Jul 2014 11:44:10 -0700 (PDT)
Received-SPF: pass (google.com: domain of support#mydomain.com designates 1.2.3.4 as permitted sender) client-ip=1.2.3.4;
Authentication-Results: mx.google.com;
spf=pass (google.com: domain of support#mydomain.com designates 1.2.3.4 as permitted sender) smtp.mail=support#mydomain.com;
dkim=pass header.i=#mydomain.com
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mydomain.com; s=default;
h=Content-Type:Content-Transfer-Encoding:MIME-Version:Message-ID:Subject:Reply-To:From:To:Date:Subject:To; bh=HBLjhR1eb0w5FQ9aVj60Gu0x3jP9XWQ7LQkpzTRHjfQ=;
b=ECWMCs3iPsjuvlT473K9u3skwyNRVunmnv3p440Nk2ZJVrbuWoO0vgzaWM8gjCC503ADKivdfrrOek8TgTSEI7G4B3WMCHI50PWq68W5rcscYJqErWxuqAVcSl4r5tomk88AYPhHiotCugmRTjwQ2K/JBtHsAvMhTlVQMMXsMl0=;
Received: from mainuser by lin9.maindomain10.net with local (Exim 4.82)
(envelope-from <support#mydomain.com>)
id 1X77hp-0001f9-SH; Tue, 15 Jul 2014 14:44:01 -0400
To: myName Mizrahi <myaccount#gmail.com>
Subject: Statistics from Sample Name site
Date: Tue, 15 Jul 2014 14:44:01 -0400
To: myName Mizrahi <myaccount#gmail.com>
From: "donotreply#mydomain.com" <root#localhost>
Reply-To: Sample Name site <donotreply#mydomain.com>
Subject: Statistics from Sample Name site
Message-ID: <d984a2c6308ef2a97cf6ccfe6292263a#mydomain.com>
X-Priority: 3
X-Mailer: PHPMailer 5.2.4 (http://code.google.com/a/apache-extras.org/p/phpmailer/)
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/html; charset=UTF-8
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - lin9.maindomain10.net
X-AntiAbuse: Original Domain - gmail.com
X-AntiAbuse: Originator/Caller UID/GID - [927 895] / [47 12]
X-AntiAbuse: Sender Address Domain - mydomain.com
X-Get-Message-Sender-Via: lin9.maindomain10.net: authenticated_id: mainuser/sender_address_domain
When sending message from round-cube, the email source look like this:
Delivered-To: myaccount#gmail.com
Received: by 10.114.75.12 with SMTP id y12csp118605ldv;
Tue, 15 Jul 2014 11:48:53 -0700 (PDT)
X-Received: by 10.224.161.129 with SMTP id r1mr34110372qax.86.1405450132678;
Tue, 15 Jul 2014 11:48:52 -0700 (PDT)
Return-Path: <support#mydomain.com>
Received: from lin9.maindomain10.net (lin9.maindomain10.net. [1.2.3.4])
by mx.google.com with ESMTPS id x8si13226659qas.81.2014.07.15.11.48.52
for <myaccount#gmail.com>
(version=TLSv1 cipher=RC4-SHA bits=128/128);
Tue, 15 Jul 2014 11:48:52 -0700 (PDT)
Received-SPF: pass (google.com: domain of support#mydomain.com designates 1.2.3.4 as permitted sender) client-ip=1.2.3.4;
Authentication-Results: mx.google.com;
spf=pass (google.com: domain of support#mydomain.com designates 1.2.3.4 as permitted sender) smtp.mail=support#mydomain.com;
dkim=pass header.i=#mydomain.com
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mydomain.com; s=default;
h=Message-ID:Subject:To:From:Date:Content-Transfer-Encoding:Content-Type:MIME-Version; bh=Bynm51C7RZD/vZ81iEMKjxxLoAJtSmKFcwU/eyFzPs8=;
b=fUX+UKS9Ua0HK35AOBRBJbmqTEuKscCYAsPyxs3If3dhhvb/AvAjl1gR9Rz9AN0EX0mu275wtaN5Y1JWP+8w8VcGebJ9FEWsltCl9nwqL6bos/eEqJxTWjDG6ch9MHo3G0mSE326Pyc13JWa59InSgJyWi8MSstT1POfuEhfe28=;
Received: from localhost.localdomain ([127.0.0.1]:54911 helo=mydomain.com)
by lin9.maindomain10.net with esmtpa (Exim 4.82)
(envelope-from <support#mydomain.com>)
id 1X77mO-0001l7-1O
for myaccount#gmail.com; Tue, 15 Jul 2014 14:48:44 -0400
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8;
format=flowed
Content-Transfer-Encoding: 7bit
Date: Tue, 15 Jul 2014 14:48:43 -0400
From: support#mydomain.com
To: myaccount#gmail.com
Subject: test
Message-ID: <ed6307c2c9504e8ba9ec21f073d5f863#mydomain.com>
X-Sender: support#mydomain.com
User-Agent: Roundcube Webmail/0.9.5
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - lin9.maindomain10.net
X-AntiAbuse: Original Domain - gmail.com
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - mydomain.com
X-Get-Message-Sender-Via: lin9.maindomain10.net: authenticated_id: support#mydomain.com
Round-Cube works with no spam.
What is the main difference that's make the issue?
Thanks :)
5.2.4 is pretty old and buggy - You need to update to the latest PHPMailer from GitHub.

Gmail inbox view action doesn't shown

I'm trying to add View Action to my emails. For tests I'm send email from grif#ecwid.com to grif#ecwid.com
Example
Return-Path: <grif#ecwid.com>
Received: from 172.17.10.84 ([87.251.133.106])
by mx.google.com with ESMTPSA id bj7sm8223219lbc.22.2014.06.06.01.11.43
for <grif#ecwid.com>
(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
Fri, 06 Jun 2014 01:11:44 -0700 (PDT)
Date: Fri, 06 Jun 2014 01:11:44 -0700 (PDT)
From: grif#ecwid.com
To: grif#ecwid.com
Message-ID: <1817181170.17.1402042304376.JavaMail.rinatgainullin#Rinats-MacBook-Pro-2.local>
Subject: =?UTF-8?B?0JTQvtCx0YDQviDQv9C+0LbQsNC70L7QstCw0YLRjCDQsiBFY3dpZCE=?=
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_Part_15_1197020028.1402042304374"
------=_Part_15_1197020028.1402042304374
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: base64
....
------=_Part_15_1197020028.1402042304374
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.=
w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=3D"http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DU=
TF-8">
<title>=D0=94=D0=BE=D0=B1=D1=80=D0=BE =D0=BF=D0=BE=D0=B6=D0=B0=D0=
=BB=D0=BE=D0=B2=D0=B0=D1=82=D1=8C =D0=B2 Ecwid!</title>
=09=09
<style type=3D"text/css">
.....
</style></head>
<body leftmargin=3D"0" marginwidth=3D"0" topmargin=3D"0" marginheight=
=3D"0" offset=3D"0" style=3D"margin: 0;padding: 0;background-color: #ffffff=
;">
....
<div itemscope itemtype=3D"http://schema.org/EmailMessage">
=09<div itemprop=3D"action" itemscope itemtype=3D"http://schema.org/ViewAct=
ion">
=09=09<link itemprop=3D"url" href=3D"https://my.grif.ecwid.com:8443/cp/vali=
date?h=3D123&ownerid=3D0"/>
=09=09<meta itemprop=3D"name" content=3D"=D0=9F=D0=BE=D0=B4=D1=82=D0=B2=D0=
=B5=D1=80=D0=B4=D0=B8=D1=82=D1=8C e-mail"/>
=09</div>
</div>
....
</body>
</html>
------=_Part_15_1197020028.1402042304374--
But my inbox letter looks like this http://i.stack.imgur.com/GAcs7.png
What I should to do to test my schema? Is this feature testing has any restriction?
Update
When I send mail for myself there are no dkim headers, but when my friend send me mail from his acc dkim header is present
No dkim
Return-Path: <grif#ecwid.com>
Received: from test-gmail-actions-0.gen.ec.ecwid.com (ec2-174-129-131-52.compute-1.amazonaws.com. [174.129.131.52])
by mx.google.com with ESMTPSA id s2sm10439008qaj.36.2014.06.26.02.45.56
for <grif#ecwid.com>
(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
Thu, 26 Jun 2014 02:45:56 -0700 (PDT)
Date: Thu, 26 Jun 2014 02:45:56 -0700 (PDT)
From: Ecwid <grif#ecwid.com>
To: grif#ecwid.com
Message-ID: <22158846.2.1403775956083.JavaMail.root#test-gmail-actions-0>
Subject: =?UTF-8?B?0JTQvtCx0YDQviDQv9C+0LbQsNC70L7QstCw0YLRjCDQsiBFY3dpZCE=?=
MIME-Version: 1.0
Content-Type: multipart/alternative;
Dkim is present
Delivered-To: grif#ecwid.com
Received: by 10.229.14.202 with SMTP id h10csp5187qca; Thu, 26 Jun 2014 03:00:03 -0700 (PDT)
X-Received: by 10.140.96.38 with SMTP id j35mr18742954qge.5.1403776803018;Thu, 26 Jun 2014 03:00:03 -0700 (PDT)
Return-Path: <bender#ecwid.com>
Received: from mail-qa0-x22a.google.com (mail-qa0-x22a.google.com [2607:f8b0:400d:c00::22a])
by mx.google.com with ESMTPS id e8si8539327qgf.40.2014.06.26.03.00.02
for <grif#ecwid.com>
(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
Thu, 26 Jun 2014 03:00:03 -0700 (PDT)
Received-SPF: pass (google.com: domain of bender#ecwid.com designates 2607:f8b0:400d:c00::22a as permitted sender) client-ip=2607:f8b0:400d:c00::22a;
Authentication-Results: mx.google.com;
spf=pass (google.com: domain of bender#ecwid.com designates 2607:f8b0:400d:c00::22a as permitted sender) smtp.mail=bender#ecwid.com;
dkim=pass header.i=#ecwid.com
Received: by mail-qa0-f42.google.com with SMTP id dc16so2614502qab.
for <grif#ecwid.com>; Thu, 26 Jun 2014 03:00:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;d=ecwid.com; s=google;
....
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
....
The email must be signed with DKIM/SPF, I don't see any of the relevant headers in your example.

Resources