问题描述
///<summary>///多附件HTML邮件发送///</summary>///<paramname="fileList">文件名称列表</param>///<returns>发送结果</returns>publicboolMultipSendHTML(ArrayListfileList){boolsucc=false;jmail.MessageClassmessage=newjmail.MessageClass();message.Silent=true;message.Charset="gb2312";//message.ContentType="text/html";message.AddRecipient(receaddress,"","");message.From=sendaddress;message.MailServerUserName=server;message.MailServerPassWord=pwd;message.Subject=subject;for(inti=0;i<fileList.Count;i++){message.AddAttachment(fileList[i].ToString(),false,null);}message.HTMLBody=mailbody;//message.ContentTransferEncoding="base64";//message.Encoding="base64";//message.ISOEncodeHeaders=false;succ=message.Send(smtp,false);message.Close();returnsucc;}用上面的代码发送出去的邮件在outlook里查看显示正常,但在其他的邮箱里看时出现乱码,请问是怎么回事啊?邮件内容:<html><body><br><imgsrc="http://mail.wides.com.cn:801/images/mail-logos.gif"><br>hellojmail我看是不是有中文<br><imgsrc="2.jpg"><br>hellojmail我看是不是有中文</body></html>
解决方案
解决方案二:
顶一下,实在是困惑,希望能有所收获!