c# web.mail发送附件问题 除了txt文本可以,其它类型的附件都被损坏了,是为什么?急呀 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 System.Web.Mail.MailMessage newMsg = new System.Web.Mail.MailMessage(); newMsg.BodyFormat = System.Web.Mail.MailFormat.Html; newMsg.From = "[email protected]"; newMsg.To = "[email protected]"; newMsg.Subject = mailSubject; newMsg.Attachments.Add(new System.Web.Mail.MailAttachment("E:\\Contract Service.doc")); System.Web.Mail.SmtpMail.SmtpServer = System.Configuration.ConfigurationSettings.AppSettings["SMTPSRV"]; System.Web.Mail.SmtpMail.Send(newMsg);代码如上,请大家帮忙看看有什么问题吗,附件大小才10K,到底为什么?难道跟我的VS2003有关? 程序中的接口怎么理解啊?能不能给我个通俗易懂的例子啊? 求教:搭建服务器问题 窗口全屏和按钮灰色问题. C#中textbox属性设置问题 转义序列\a,\b,\p,\f,\n,\r,\t,\v中abpfnrtv的全称是什么 Windows Service多用户访问时如何处理?在线等 菜单 100分求c# 写出账务软件中的凭证录入界面!或给点思路! 请问 XML 问题,路径怎么设置? xpath怎么用呀? vs2005打开项目源码问题 TreeList怎么根据节点的名称,设置选中的节点
newMsg.BodyFormat = System.Web.Mail.MailFormat.Html;
newMsg.From = "[email protected]";
newMsg.To = "[email protected]";
newMsg.Subject = mailSubject;
newMsg.Attachments.Add(new System.Web.Mail.MailAttachment("E:\\Contract Service.doc"));
System.Web.Mail.SmtpMail.SmtpServer = System.Configuration.ConfigurationSettings.AppSettings["SMTPSRV"];
System.Web.Mail.SmtpMail.Send(newMsg);
代码如上,请大家帮忙看看有什么问题吗,附件大小才10K,到底为什么?难道跟我的VS2003有关?