身份模拟,具体参见
http://www.microsoft.com/China/Community/program/originalarticles/TechDoc/impersonation.mspx
http://www.microsoft.com/China/Community/program/originalarticles/TechDoc/impersonation.mspx
解决方案 »
- VS2005在生成软件包时,能不能调用指定的程序?
- 【提问】怎么实现两个TextChanged事件中数据查询都成功后再让按钮可用?
- 客户电脑不安装office 程序可以使用access数据库吗
- C# 里面如何实现视频全屏的效果
- 为什么Winform中label控件的值不能随着程序的运行改变????
- 回发或回调参数无效 问题
- 一般事件中的object 和 e 在什么情况下使用?
- 几个新闻显示的问题
- 急!!!C# winform DataGridView如何实现嵌套对象绑定列
- 怎样从excel表中导到sql里面,赶紧呀,100分了,在线等
- SOS!安装VS.net2003的时候出现错误1935安装汇编组件错误
- 在winform里面没有asp.net里面的那几个验证控件吗?
msg.To = Recipient;
msg.From = Sender;
msg.Subject = Subject;
msg.Body = Message;
msg.BodyFormat = MailFormat.Text;
msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1"); //basic authentication
msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "username"); //set your username here
msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "password"); //set your password here
SmtpMail.SmtpServer = Server;
SmtpMail.Send(msg);
message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1");
message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "userName");
message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "pwd");
but this has some uncertainty:
microsoft's cdo servise can shutdown .
so you had better use vendor tool