dongxia2068 2018-09-03 22:48
浏览 53

mandrill打破了我的多部分哑剧消息

Building off of PHPMailer attachments are showing up as base64-encoded text , I'm using PHPMailer to send emails using Mandrill.

Here's what the email looks like in my GMail inbox:

enter image description here

Here's what I want it to look like:

enter image description here

Here's the email that PHPMailer created:

Headers:

Date: Mon, 3 Sep 2018 17:23:30 -0500
From: neubert@neubert.com
Message-ID: <l3dhUHTYkrQSd0hXkGUZDYNoAYKEkAIt21aBAknnpJE@aa1b216e11db>
X-Mailer: PHPMailer 6.0.5 (https://github.com/PHPMailer/PHPMailer)
MIME-Version: 1.0
Content-Type: multipart/mixed;
    boundary="b1_l3dhUHTYkrQSd0hXkGUZDYNoAYKEkAIt21aBAknnpJE"
Content-Transfer-Encoding: 8bit

Body:

This is a multi-part message in MIME format.
--b1_l3dhUHTYkrQSd0hXkGUZDYNoAYKEkAIt21aBAknnpJE
Content-Type: text/plain; charset=us-ascii

See attached!

--b1_l3dhUHTYkrQSd0hXkGUZDYNoAYKEkAIt21aBAknnpJE
Content-Type: application/csv; name="test.txt"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=test.txt

aGVsbG8sIHdvcmxkIQ==

Here's what I get in gmail:

Header:

From: Example <hello@example.com>
Sender: Example <hello@mail135-21.atl141.mandrillapp.com>
Subject: Attachment Test 9184364
Return-Path: <bounce-md_30776766.5b8db464.v1-b19ad375f24f410ab92db42268b72992@mandrillapp.com>
Received: from [34.225.176.22] by mandrillapp.com id b19ad375f24f410ab92db42268b72992; Mon, 03 Sep 2018 22:23:32 +0000
Message-Id: <6db92e16ffe7190ce4891eef6549cec7@swift.generated>
To: <neubert@neubert.com>
X-Report-Abuse: Please forward a copy of this message, including all headers, to abuse@mandrill.com
X-Report-Abuse: You can also report abuse here: http://mandrillapp.com/contact/abuse?id=30776766.b19ad375f24f410ab92db42268b72992
X-Mandrill-User: md_30776766
Date: Mon, 03 Sep 2018 22:23:32 +0000
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="_av-oFI9mLO0ZP3IifF5xBDhHQ"

Body:

--_av-oFI9mLO0ZP3IifF5xBDhHQ
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit

This is a multi-part message in MIME format.
--b1_l3dhUHTYkrQSd0hXkGUZDYNoAYKEkAIt21aBAknnpJE Content-Type: text/plain;
charset=us-ascii See attached!
--b1_l3dhUHTYkrQSd0hXkGUZDYNoAYKEkAIt21aBAknnpJE Content-Type:
application/csv; name="test.txt" Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=test.txt aGVsbG8sIHdvcmxkIQ==
--b1_l3dhUHTYkrQSd0hXkGUZDYNoAYKEkAIt21aBAknnpJE--
--_av-oFI9mLO0ZP3IifF5xBDhHQ
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

This is a multi-part message in MIME format.
--b1_l3dhUHTYkrQSd0hXkGUZDYNoAYKEkAIt21aBAknnpJE
Content-Type: text/plain; charset=us-ascii

See attached!

--b1_l3dhUHTYkrQSd0hXkGUZDYNoAYKEkAIt21aBAknnpJE
Content-Type: application/csv; name="test.txt"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=test.txt

aGVsbG8sIHdvcmxkIQ==

--b1_l3dhUHTYkrQSd0hXkGUZDYNoAYKEkAIt21aBAknnpJE--<img src="https://mandrillapp.com/track/open.php?u=30776766&id=b19ad375f24f410ab92db42268b72992" height="1" width="1">
--_av-oFI9mLO0ZP3IifF5xBDhHQ--

So it would appear that Mandrill is replacing the Multipart boundary and, in the process, is breaking my outgoing emails.

Any ideas as to what I can do to prevent Mandrill from breaking my outgoing emails?

Thanks!

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
    • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
    • ¥15 CSAPPattacklab
    • ¥15 一直显示正在等待HID—ISP
    • ¥15 Python turtle 画图
    • ¥15 关于大棚监测的pcb板设计
    • ¥15 stm32开发clion时遇到的编译问题
    • ¥15 lna设计 源简并电感型共源放大器
    • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
    • ¥15 Vue3地图和异步函数使用