推荐.Net下的邮件发送接受组件
http://www.eastasp.com/zh-cn/products/eastasp.framework.net/download.aspx
http://www.eastasp.com/zh-cn/products/eastasp.framework.net/download.aspx
解决方案 »
- 用webbrowser打开网页.隐藏网页里面的一个文本框怎么做???求大神指导.
- 怎么调用excel文件中的三列数据,分别保存为三个一维数组?
- 不支持此接口c#
- 运行输出 System.Collections.ArrayList
- 救命!!
- 【C#】怎样到远程服务器上查询,增加,修改xml文件的内容,急,急,急
- C#按住QQ的滚动条向下移动,应该怎么实现?
- C#里如何对2个内存表进行比较?
- dataset应用时的问题。
- 请教VC++和.NET安装的问题
- Petzold的《Programming Windows With C#》一书中Checker.cs示例程序调用基类的OnResize函数的次序问题
- 怎样发送带附件的邮件
conf.Fields[CdoConfiguration.cdoSendUsingMethod].Value = CdoSendUsing.cdoSendUsingPort;
conf.Fields[CdoConfiguration.cdoSMTPServer].Value = "smtp.163.com";
conf.Fields[CdoConfiguration.cdoSMTPServerPort].Value = 25;
conf.Fields[CdoConfiguration.cdoSMTPAuthenticate].Value = CdoProtocolsAuthentication.cdoBasic;
conf.Fields[CdoConfiguration.cdoSendUserName].Value = "帐号";
conf.Fields[CdoConfiguration.cdoSendPassword].Value = "密码";
conf.Fields.Update();
MessageClass msg = new MessageClass();
msg.Configuration=conf;
msg.From = "[email protected]";
msg.To = "[email protected]";
msg.Subject = "help";
msg.TextBody = "help";
msg.Send();
http://www.c-sharpcorner.com/Internet/MailingAppMG.asp
HSkyXSmtp Web邮件群发专家,使用简单,功能强大。
同时支持匿名和身份验证,适用于多种服务器环境,更方便使用。
率先支持用户名和密码加密保护机制,更加安全可靠。
采用多文本编辑模式,可直接添加字符和调入文本文件,信件格式更随心所欲。
支持html编码超文本信件,让你的信件别出心裁,更具亮点。
可同时发送多个附件,操作简单,速度极快。
采用了标准的Com组件方式,只需服务器端注册即可,而再也不用担心客户机是否支持。
下载地址:
http://www.skyec.com/U_View_cpxz_detail.asp?ProductID=11
{
MailMessage mail = new MailMessage();
mail.To = "[email protected]";
mail.From = "[email protected]";
mail.Subject = "this is a test email.";
mail.Body = "Some text goes here";
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1"); //basic authentication
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "my_username_here"); //set your username here
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "super_secret"); //set your password here SmtpMail.SmtpServer = "mail.mycompany.com"; //your real server goes here
SmtpMail.Send( mail );
}