求实现用户认证的发邮件的C#程序片断,请高手不吝赐教,小弟谢先!
解决方案 »
- 如何计算ListView一列数字的和!
- Remoting相关问题
- 如何提升读取文件的效率
- TextBox控件的数据绑定问题
- 如何在C#的WEB Application 中实现在客户端生成Excel文件,多谢
- 字符串操作问题
- 昨天重装了vc.net2003,结果出问题了!
- 请进,关于使用WebBrowser直接获取源代码的问题!
- 求助!谁能给我个源代码看!
- pictrue 里面GDI画图能不能自动生成滚动条的?
- 三层架构和三层数据库有关系吗。
- 高分!我要使用c# windows form 写一个类似于foxmail 的收发邮件系统,我想调用word的编辑器来发html邮件(或其他编辑器也行),有谁知道或做
{MailMessage Message = new MailMessage();
Message.To = "[email protected]";
Message.From = "[email protected]";
Message.Subject = "testmail";
Message.Body = "test1111";//注释中用于发送外网
//Message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1");
// Message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "[email protected]") ;//'发件人邮箱用户名
// Message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "pwd") ;//'发件人邮箱密码SmtpMail.SmtpServer.Insert( 0, "sbs.net");
//SmtpMail.SmtpServer.Insert( 0, "127.0.0.1 or your mail server name here") SmtpMail.Send(Message);
Console.WriteLine("ok");
Console.Read();
}
}
}