在D2010上使用Indy tiburon的最新快照。像一個非常簡單的項目:Indy IdSMTP和Thunderbird中的附件
var
stream: TFileStream; (s is TidSMTP and m is TidMessage)
begin
s.Connect;
Stream := TFileStream.Create('c:\Test.zip', fmOpenRead or fmShareExclusive);
try
with TIdAttachmentMemory.Create(m.MessageParts, Stream) do
begin
ContentType := 'application/x-zip-compressed';
Name := ExtractFilePath('C:\'); //'
FileName := 'Test.zip';
end;
finally
FreeAndNil(Stream);
end;
s.Send(m);
s.Disconnect();
end;
一切都在Outlook中,蝙蝠!OE,雅虎等工作確定...但在雷鳥附件沒有顯示。在Thunderbird中查看消息的來源,附件就在那裏。我能信息之間找到印和其他客戶端發送的唯一區別是,印地消息具有順序如下:
Content-Type: multipart/mixed; boundary="Z\=_7oeC98yIhktvxiwiDTVyhv9R9gwkwT1"
MIME-Version: 1.0
,而任何其他客戶端具有順序:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="Z\=_7oeC98yIhktvxiwiDTVyhv9R9gwkwT1"
不知道如果這是問題的根源,但如果是這樣的話:這是Thunderbird上的一個錯誤還是這是indy的問題,它會使消息頭「變形」?這個訂單是一個問題嗎?無論如何,這是否重要?
你是否可以將完整的消息放在某處(例如pastebin)? – glob 2010-03-17 01:02:01