如何正确格式化此多部分电子邮件?
问题描述:
我真的很难格式化多部分电子邮件,这导致我查看它的任何邮件程序显示空白文档。有没有人知道我在这里做错了什么?如何正确格式化此多部分电子邮件?
对不起,如果这已被回答之前......我尝试了一些其他人的答案,但一直没有能够解决我的问题。
谢谢!
Delivered-To: [email protected]
Received: by 10.182.151.107 with SMTP id up11csp166588obb;
Fri, 22 Feb 2013 04:03:14 -0800 (PST)
X-Received: by 10.50.53.208 with SMTP id d16mr804024igp.5.1361534594250;
Fri, 22 Feb 2013 04:03:14 -0800 (PST)
Return-Path: <[email protected]>
Received: from smtp-out-02.shaw.ca (smtp-out-02.shaw.ca. [64.59.136.138])
by mx.google.com with ESMTP id xf7si2720052igb.40.2013.02.22.04.03.14;
Fri, 22 Feb 2013 04:03:14 -0800 (PST)
Received-SPF: neutral (google.com: 64.59.136.138 is neither permitted nor denied by best guess record for domain of [email protected]) client-ip=64.59.136.138;
Authentication-Results: mx.google.com;
spf=neutral (google.com: 64.59.136.138 is neither permitted nor denied by best guess record for domain of [email protected]) [email protected]
X-Cloudmark-SP-Filtered: true
X-Cloudmark-SP-Result: v=1.1 cv=3f4U5fHrZLLPCzJ96ldNbjtja1zQ0ih230F6vdsLr5s= c=1 sm=1
a=FaKJ9xKj03AA:10 a=BLceEmwcHowA:10 a=A_tRFZU-kTUA:10
a=KDKwGF1bB4N2lZfoIKkULA==:17 a=wN4yYl2XIkzaJHmYasIA:9 a=QEXdDO2ut3YA:10
a=CSdORdO7lnbvznqBb-0A:9 a=_W_S_7VecoQA:10 a=MZpOI37Du90A:10
a=HpAAvcLHHh0Zw7uRqdWCyQ==:117
Received: from unknown (HELO lab.dyndns-ip.com) ([24.77.8.238])
by smtp-out-02.shaw.ca with SMTP; 22 Feb 2013 05:03:13 -0700
Received: from Danielle-PC ([127.0.0.1])
by lab.dyndns-ip.com
; Fri, 22 Feb 2013 06:02:53 -0600
Message-ID: <[email protected]>
Subject: Automated Email
To:
From: Structure Agency <[email protected]>
Return-Path: Structure Agency <[email protected]>
Sender: Structure Agency <[email protected]>
Content-Language: en
MIME-Version: 1.0
Date: Fri, 22 Feb 2013 06:02:53 -0600
Priority: normal
Importance: normal
Content-Type: multipart/alternative; boundary="alt-boundary-1I6GTFY8"
--alt-boundary-1I6GTFY8
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Plain text message!
--alt-boundary-1I6GTFY8
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: 7bit
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Automated Email</title>
</head>
<body>
<p>Message in HTML!</p>
</body>
</html>
--alt-boundary-1I6GTFY8
答
我敢肯定的是,最后的边界需要“ - ”添加到最后。
希望帮助, 斯图尔特
也做到了,谢谢! – 2013-02-22 12:50:55