各位:
我用Indy组件写了一个邮件客户端,发现在接收邮件时,有些邮件头部信息可以接收到,但是内容接收不到,这样的邮件内容多是网页,不知道是什么原因.我在接收时语句如下:
接收邮件头部信息: POP.RetrieveHeader(intIndex, Msg);
接收邮件内容信息: POP.Retrieve(lvHeaders.Selected.Index + 1, Msg);请问是什么原因,谢谢!
我用Indy组件写了一个邮件客户端,发现在接收邮件时,有些邮件头部信息可以接收到,但是内容接收不到,这样的邮件内容多是网页,不知道是什么原因.我在接收时语句如下:
接收邮件头部信息: POP.RetrieveHeader(intIndex, Msg);
接收邮件内容信息: POP.Retrieve(lvHeaders.Selected.Index + 1, Msg);请问是什么原因,谢谢!
POP.Retrieve(lvHeaders.Selected.Index + 1, Msg)后,
这时Msg.MessageParts.Count = 0, 也是是根本没有解析出邮件正文.
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>亿友网祝您生日快乐</title>
<meta http-equiv="Content-Type" Content="text/html; charset=gb2312"/>
<link href="http://mail.yeeyoo.com/TemplateFiles/css/mail.css" rel="stylesheet" type="text/css" />
</head><body class="body">
<table width="558" border="0" align="center" cellpadding="0" cellspacing="0" class="m_3px"> <a href="http://mail.yeeyoo.com/home/mail_rst.rails?logSendMailID=55572829&status=2&referUrl=http%3a%2f%2fsso.yeeyoo.com%2fssoLogin.do%3faction%3dssoLogin%26loginDef%3d0%26maxAge%3d31104000%26identity%3dmrcpro163%40163.com%26pwd%3d989226%26url%3dhttp%253A%252F%252Fsy.yeeyoo.com" target="_blank">
<img src="http://mail.yeeyoo.com/TemplateFiles/newpics/activate_Birthday/shengri.gif" width="320" height="54" border="0" /></a><br></td>
</tr>
</table>
<!--从这里到最后为底部公有内容-->
</table>
</body>
<img src="http://mail.yeeyoo.com/home/mail_rst.rails?logSendMailID=55572829&[email protected]&status=1" width="0" height="0" />