首页 新闻 会员 周边

MOSS模拟帐号后代发邮件不能发送邮件

0
悬赏园豆:10 [已关闭问题] 关闭于 2013-03-06 14:02

   用模拟帐号后,发送邮件时提示:发送失败,原因:The request failed. 远程服务器返回错误: (401) 未经授权。请问下这是什么原因啊

hardy_Wang的主页 hardy_Wang | 初学一级 | 园豆:17
提问于:2013-01-05 09:40
< >
分享
所有回答(2)
0

原因很简单,没有通过身份认证。

Launcher | 园豆:45045 (高人七级) | 2013-01-05 10:20

您的意思是模拟帐号权限不够?还是说没有模拟成功。我的模拟帐号代码如下:

View Code
   System.Net.ServicePointManager.ServerCertificateValidationCallback =
                    delegate(Object obj, X509Certificate ertificate, X509Chain chain, SslPolicyErrors error)
                    {
                        return true;
                    };
                ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010);
                service.Url = new Uri("");
                NetworkCredential credential=new NetworkCredential("","","");
                service.Credentials = credential;
                if (!string.IsNullOrEmpty(@"aa\00"))
                {
                    service.ImpersonatedUserId = new ImpersonatedUserId(ConnectingIdType.PrincipalName, @"aa\00");
                }
支持(0) 反对(0) hardy_Wang | 园豆:17 (初学一级) | 2013-01-05 10:44
0

一直忘了过来结贴了,其原因是去掉帐号前面的域就行了

hardy_Wang | 园豆:17 (初学一级) | 2013-03-05 17:26
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册