private void Button1_Click(object sender, System.EventArgs e)
{
try
{
System.Web.Mail.MailMessage myMail=new MailMessage();
myMail.From = from.Text;
myMail.To = to.Text;
myMail.Subject = subject.Text;
// myMail.Priority = MailPriority.Low;
// myMail.BodyFormat = MailFormat.Text;
myMail.Body = content.Text;
SmtpMail.SmtpServer="smtp.163.com"; //your smtp server here
SmtpMail.Send(myMail);
Response.Write ("信件发送成功");
}
catch(Exception ex)
{
Response.Write (ex.Message);
}
}执行后出现错误, 错误提示: Could not access 'CDO.Message' object.
怎样解决呢?? 谢谢
{
try
{
System.Web.Mail.MailMessage myMail=new MailMessage();
myMail.From = from.Text;
myMail.To = to.Text;
myMail.Subject = subject.Text;
// myMail.Priority = MailPriority.Low;
// myMail.BodyFormat = MailFormat.Text;
myMail.Body = content.Text;
SmtpMail.SmtpServer="smtp.163.com"; //your smtp server here
SmtpMail.Send(myMail);
Response.Write ("信件发送成功");
}
catch(Exception ex)
{
Response.Write (ex.Message);
}
}执行后出现错误, 错误提示: Could not access 'CDO.Message' object.
怎样解决呢?? 谢谢
解决方案 »
- [求助]关于长文章分页的方法?
- 急急 各位高三指点 文本框文本发生改变事件
- list textbox
- 域名问题
- 关于 Web Service 中的Socket的问题 急急急急!!求高手帮忙
- gridview非常郁闷的问题
- 急请教:利用Timer、UpdatePanel局部刷新页面,客户端Browser占用内存不断增长
- 求救,急!一个ado.net的问题,高手请进,高分相送!
- 如何获取FCKeditor的焦点?如何判断FCKeditor是否为空?
- 提交表单到web service 问题
- 用Response.Redirect("default.html")后,可不可以使default.html最大化,且无标题栏按钮,只要一个关闭,最小化?
- Server Application Unavailable是什么问题
http://blog.joycode.com/ghj/archive/2004/10/22/36274.aspx