我无法让服务器接受我从我端发送的电子邮件,基本上我意识到它从laravel的邮件中发送两个超级不同的东西,而不是hotmail&雷鸟
基本上,我通常做的是使用hotmail回复,但现在我有多个hotmail我必须管理,因此我试图从我的web应用程序(laravel)发送电子邮件,以便更容易管理但是"服务器& #34;我发送到不接受我正常的PHP邮件格式。我肯定错过了一些东西。任何电子邮件专家都可以就此提出建议吗?
可疑
我的内容不是BASE64
In-Reply-To<不确定这个
我正在使用Hotmail的SMTP
普通PHP
X-TMN: [Rmqa/GDhCTtKz/QHzf3PJ3OwikNcUBK3]
X-Originating-Email: [My Email]
Message-ID: <BLU436-SMTP1442C473F3D4FDD87CB62F29A410@phx.gbl>
Return-Path: Email.com
Date: Wed, 14 Jan 2015 17:06:08 +0800
Subject: RE: Subject
From: My Email
To: "Email.com"
<Email.com>
MIME-Version: 1.0
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-OriginalArrivalTime: 14 Jan 2015 09:06:40.0049 (UTC) FILETIME=[68728A10:01D02FD9]
Email Content in pure Text here
Hotmail(基于网络)/ thunbird风格
X-TMN: [vnGLLjV7gUOyWwB/t0Ipyc0a9UiAeX10]
X-Originating-Email: [My Email]
Message-ID: <BAY180-W3892FACB7ED35FBDFF773B9A410@phx.gbl>
Return-Path: My Email
Content-Type: multipart/alternative;
boundary="_4c14973f-4b86-4f73-b78c-eac0375a1262_"
From: My Email
To: "Email.com"
<Email.com>
Subject: RE: Subject
Date: Wed, 14 Jan 2015 17:03:32 +0800
Importance: Normal
In-Reply-To: <14ae7acae73.1948.26c1bd@ismtpd-063>
References: <14ae7acae73.1948.26c1bd@ismtpd-063>
MIME-Version: 1.0
--_4c14973f-4b86-4f73-b78c-eac0375a1262_
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: base64
<base64 here>
--_4c14973f-4b86-4f73-b78c-eac0375a1262_--
答案 0 :(得分:0)
管理解决它,正如所怀疑的那样,它是Base64。基本上,我必须在我的laravel上自定义内容类型。
$message->getHeaders()->addTextHeader('Content-Type', 'text/plain; charset="gb2312"');
$message->getHeaders()->addTextHeader('Content-Transfer-Encoding', 'base64');