現在,我還有gForge的另一個問題。用快速郵件發送郵件(php)到gforge電子郵件網關,等號(=)在行末
我在我們的內部網中有一個表單,用於在我們的gforge系統中創建新的跟蹤器。我們使用Kohana和Swift Mailer發送smtp電子郵件。
這是我所得到的(我發送郵件作爲密件抄送給我自己):
Received: from 192.168.150.250 (192.168.150.250) by local
(192.168.50.10) with Microsoft SMTP Server id 15.1.280.1; Wed, 16 Mar 2011
08:51:40 +0100
Message-ID: <[email protected]>
Date: Wed, 16 Mar 2011 08:51:38 +0100
Subject: Test_Issue Jieha (tracker-17)
From: <[email protected]>
To: <[email protected]>
BCC: <[email protected]>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Return-Path: [email protected]
X-MS-Exchange-Organization-AuthSource: local
X-MS-Exchange-Organization-AuthAs: Anonymous
MIME-Version: 1.0
priority:4
assignees: wollmannc
stardate: 03/16/2011
end date: 03/17/2011
Von user:
Name: Christian
email: [email protected]
Bemerkung:
mein bemerkungstext
testinput: mein input
所以,一切看起來不錯。但中的gforge告訴我:
Received: from local (192.168.200.19) by
local (192.168.50.10) with Microsoft SMTP Server id
15.1.280.1; Wed, 16 Mar 2011 08:51:42 +0100
Received: from gforge.local (centos5 [127.0.0.1]) by
gforge.local (Postfix) with ESMTP id 5DBDED48174 for
<[email protected]>; Wed, 16 Mar 2011 08:51:42 +0100 (CET)
Received: (from [email protected]) by gforge.local
(8.13.8/8.13.8/Submit) id p2G7pgvZ004723; Wed, 16 Mar 2011 08:51:42 +0100
Date: Wed, 16 Mar 2011 08:51:42 +0100
From: <[email protected]>
Message-ID: <[email protected]>
X-Authentication-Warning: gforge.local: nobody set sender to "GForge" <[email protected]> using -f
To: <[email protected]>
Reply-To: GForge <[email protected]>
Subject: =?utf-8?B?RmVobyIGJlaWgQmVhcmJlaXRlbiBkZXIgRW1haWw=?=
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
Return-Path: [email protected]
X-MS-Exchange-Organization-AuthSource: local
X-MS-Exchange-Organization-AuthAs: Anonymous
MIME-Version: 1.0
Ihre Email konnte nicht verarbeitet werden.
Die Anwendung sagte:
* Start Datum ist Erforderlich
* Schlieungs Datum ist Erforderlich
* Close Date must be > Open Date
Ihre Nachricht war:
priority:4
assignees: wollmannc
stardate: 03/16/2011
end d=
ate: 03/17/2011
Von user:
Name: Christian
email: [email protected]=
ail.de
Bemerkung:
mein bemerkungstext
testinput: mei=
n input
它告訴「郵件無法處理的應用說:,一個結束日期是必需的需要開始日期」。
注意一些行末尾的等號。我認爲這是「引用打印」的最大行長度還是smtp也限制了行?但爲什麼我通過BCC獲得正確的郵件?那應該與gforge得到的郵件一樣,對吧?! Gforge是否在收取郵件?
我很困惑:-(我希望你能有所幫助。
嗯,我會檢查一下。謝謝... – Chris 2011-03-21 07:34:23
您可以通過以下方式更改Content-Transfer-Encoding: $ message = Swift_Message :: newInstance($ subject,$ message,$ html,'utf-8'); \t \t $ message-> setEncoder(Swift_Encoding :: get8BitEncoding()); – Chris 2011-03-21 07:58:14
是的,這工作。謝謝! – Chris 2011-03-21 08:43:25