X
XiaoLiang
Unregistered / Unconfirmed
GUEST, unregistred user!
delphi7+indy9
生成邮件程序如下:
with IdMsgSend do
begin
Body.Clear;
Body.Add(sMemo);
From.Text := trim(RzEdit_email.Text);
ReplyTo.EMailAddresses := trim(RzEdit_email.Text);
Recipients.EMailAddresses := sToAddr;
Subject := sHeader;
end;
IdMsgSend.MessageParts.Clear;
TIdAttachment.Create(IdMsgSend.MessageParts,sAttach);
发送成功接收后,发现这样一个问题:用foxmail接收,会把这封邮件自动转移到垃圾邮件箱!仔细观察用它发的邮件与其他邮件的不同之处:
用indy发的邮件头:
From: xx@xxx.com
Subject: This a =?GB2312?B?suLK1A==?=
To: xxx@xxx.com
MIME-Version: 1.0
Reply-To: xxx@xxx.com
Date: Wed, 27 Apr 2005 11:20:19 +0800
X-Priority: 3 (Normal)
X-Library: Indy 9.00.10
X-MIMETrack: Itemize by SMTP Server on mail/gxmcc(Release 6.5.3|September 14, 2004) at
2005-04-27 11:22:25,
Serialize by POP3 Server on mail/gxmcc(Release 6.5.3|September 14, 2004) at
2005-04-27 11:22:53
Message-ID: <OF77C7C0DC.DCEDE320-ON48256FF0.00128858@xxx.com>
Content-Type: multipart/mixed; boundary="=_NextPart_2rfkindysadvnqw3nerasdf"
--=_NextPart_2rfkindysadvnqw3nerasdf
Content-Transfer-Encoding: 7bit // 关键应该在这里
Content-Type: text/plain
hello,你好
--=_NextPart_2rfkindysadvnqw3nerasdf
Content-Type: application/octet-stream;
name="cc.dbf"
Content-Disposition: attachment;
filename="cc.dbf"
Content-Transfer-Encoding: base64
A2kEGwIAAAChAPUBAAAAAAAAAAAAAAAAAAAAAAB6AABUT19BREQAAAAAAEMBAAAAMgAAAAAAAAAA
用foxmail发的邮件头如下:
Date: Tue, 26 Apr 2005 11:42:31 +0800
From: "=?gb2312?B+?=" <xxx@xxx.com>
To: "=?gb2312?B?x/jW0NDEywytK>
Subject: =?gb2312?B?4=?=
X-mailer: Foxmail 5.0 [cn]
Mime-Version: 1.0
X-MIMETrack: Itemize by SMTP Server on mail/gxmcc(Release 6.5.3|September 14, 2004) at
2005-04-26 11:44:32,
Serialize by POP3 Server on mail/gxmcc(Release 6.5.3|September 14, 2004) at
2005-04-26 11:51:47
Message-ID: <OF6D479458.CFE3E7DF-ON48256FEF.00148EA6@xxx.com>
Content-Type: multipart/mixed;
boundary="=====001_Dragon385124177348_====="
--=====001_Dragon385124177348_=====
Content-Type: multipart/alternative;
boundary="=====003_Dragon385124177348_====="
--=====003_Dragon385124177348_=====
Content-Transfer-Encoding: base64 // 这里就不一样了。
Content-Type: text/plain;
charset="gb2312"
x/jW0NDEwey1vLywytK+rcDto6zE+rrDo6EgDQoNCqG
为此,我用了
IdMsgSend.ContentType := 'text/plain';
IdMsgSend.ContentTransferEncoding := 'base64';
IdMsgSend.CharSet := 'gb2312';
等等,发送的邮件头信息仍然编码为:
Content-Transfer-Encoding: 7bit
Content-Type: text/plain
请叫那位高手能否解决这个问题,反正我分多,随便给
生成邮件程序如下:
with IdMsgSend do
begin
Body.Clear;
Body.Add(sMemo);
From.Text := trim(RzEdit_email.Text);
ReplyTo.EMailAddresses := trim(RzEdit_email.Text);
Recipients.EMailAddresses := sToAddr;
Subject := sHeader;
end;
IdMsgSend.MessageParts.Clear;
TIdAttachment.Create(IdMsgSend.MessageParts,sAttach);
发送成功接收后,发现这样一个问题:用foxmail接收,会把这封邮件自动转移到垃圾邮件箱!仔细观察用它发的邮件与其他邮件的不同之处:
用indy发的邮件头:
From: xx@xxx.com
Subject: This a =?GB2312?B?suLK1A==?=
To: xxx@xxx.com
MIME-Version: 1.0
Reply-To: xxx@xxx.com
Date: Wed, 27 Apr 2005 11:20:19 +0800
X-Priority: 3 (Normal)
X-Library: Indy 9.00.10
X-MIMETrack: Itemize by SMTP Server on mail/gxmcc(Release 6.5.3|September 14, 2004) at
2005-04-27 11:22:25,
Serialize by POP3 Server on mail/gxmcc(Release 6.5.3|September 14, 2004) at
2005-04-27 11:22:53
Message-ID: <OF77C7C0DC.DCEDE320-ON48256FF0.00128858@xxx.com>
Content-Type: multipart/mixed; boundary="=_NextPart_2rfkindysadvnqw3nerasdf"
--=_NextPart_2rfkindysadvnqw3nerasdf
Content-Transfer-Encoding: 7bit // 关键应该在这里
Content-Type: text/plain
hello,你好
--=_NextPart_2rfkindysadvnqw3nerasdf
Content-Type: application/octet-stream;
name="cc.dbf"
Content-Disposition: attachment;
filename="cc.dbf"
Content-Transfer-Encoding: base64
A2kEGwIAAAChAPUBAAAAAAAAAAAAAAAAAAAAAAB6AABUT19BREQAAAAAAEMBAAAAMgAAAAAAAAAA
用foxmail发的邮件头如下:
Date: Tue, 26 Apr 2005 11:42:31 +0800
From: "=?gb2312?B+?=" <xxx@xxx.com>
To: "=?gb2312?B?x/jW0NDEywytK>
Subject: =?gb2312?B?4=?=
X-mailer: Foxmail 5.0 [cn]
Mime-Version: 1.0
X-MIMETrack: Itemize by SMTP Server on mail/gxmcc(Release 6.5.3|September 14, 2004) at
2005-04-26 11:44:32,
Serialize by POP3 Server on mail/gxmcc(Release 6.5.3|September 14, 2004) at
2005-04-26 11:51:47
Message-ID: <OF6D479458.CFE3E7DF-ON48256FEF.00148EA6@xxx.com>
Content-Type: multipart/mixed;
boundary="=====001_Dragon385124177348_====="
--=====001_Dragon385124177348_=====
Content-Type: multipart/alternative;
boundary="=====003_Dragon385124177348_====="
--=====003_Dragon385124177348_=====
Content-Transfer-Encoding: base64 // 这里就不一样了。
Content-Type: text/plain;
charset="gb2312"
x/jW0NDEwey1vLywytK+rcDto6zE+rrDo6EgDQoNCqG
为此,我用了
IdMsgSend.ContentType := 'text/plain';
IdMsgSend.ContentTransferEncoding := 'base64';
IdMsgSend.CharSet := 'gb2312';
等等,发送的邮件头信息仍然编码为:
Content-Transfer-Encoding: 7bit
Content-Type: text/plain
请叫那位高手能否解决这个问题,反正我分多,随便给