SmtpMail.SmtpServer = settings.SmtpServer;
m.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1" ); //basic authentication
m.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", settings.SmtpServerUserName ); //set your username here
m.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", settings.SmtpServerPassword ); //set your password hereSmtpMail.Send(m);
小弟用了个CMail作为邮件服务器,用Outlook测试可以.
结果写了个.net发送邮件的(上面的)。出现“未能访问“CDO.Message”对象。”问题,改成126的邮箱又可以。
请问这是什么问题。该怎么解决?谢谢!十万火急。。
m.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1" ); //basic authentication
m.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", settings.SmtpServerUserName ); //set your username here
m.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", settings.SmtpServerPassword ); //set your password hereSmtpMail.Send(m);
小弟用了个CMail作为邮件服务器,用Outlook测试可以.
结果写了个.net发送邮件的(上面的)。出现“未能访问“CDO.Message”对象。”问题,改成126的邮箱又可以。
请问这是什么问题。该怎么解决?谢谢!十万火急。。
解决方案 »
- 关于 SqlCommand 里面的参数的问题,进来指点一下我吧
- asp.net中javascript的问题,大家帮我看下
- 那个高手进来看看!郁闷我三天的问题
- 用TabStrip和MultiPage聯合使用,但點tabstrip沒反應
- 求救怎么写好C#语言啊
- 为什么同一服务器上的静态页面访问速度竟然没有.NET页面快?
- 怎么用正则表达式抓取一段文本中指定格式的内容?
- 还是关于showModalDialog的刷新的问题,请朋友帮忙,谢谢,急呀!!!
- asp.net与flex交互问题
- asp调用数据库,不知道数据类型怎么设置,求救
- 未将对象引用设置到对象的实例
- Asp.net页面中的Cache块在什么情况下会丢失,如何预防丢失的问题?
我现在的问题是:用126的可以发送,但是用自己服务器上的Cmail不行