邮件发送问题[在线等]!!! 写一个邮件发送系统,如何安装smtp服务?? 我用的是win7....安装配置好了Microsoft Outlook还要装smtp服务么?非常感谢......... 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不用安装smtp也可以,网上有很多发邮件的软件。我这里也有一个,可参考一下。用qq邮箱发送比较好。http://blog.csdn.net/sxldfang/archive/2010/06/14/5670859.aspx 发送方法很多如jmailhttp://topic.csdn.net/u/20100608/17/600dbc8d-2e29-4856-9d22-70f9e843747b.html 安装IIS的时候,把stmp也选中就是了。使用程序,不用安装stmp和outlookpublic void SendMail(string mailContent, string toMailAddress) { try { MailMessage mail = new MailMessage(); mail.BodyFormat = MailFormat.Html; mail.To = 收件人地址; mail.Subject = 主题; mail.Body =内容; mail.BodyEncoding = Encoding.GetEncoding("GB2312"); mail.From =发送人邮件地址; mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1"); //basic authentication mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", ht["username"].ToString()); //set your username here mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", ht["password"].ToString()); //set your password here SmtpMail.SmtpServer = ht["host"].ToString();//mail server SmtpMail.Send(mail); } catch { } } 如何动态设置Iframe的标题? [提问]注册一个新用户就给用户分配一个页面。是否需要用到数据表 上下文中不存在ScriptManager asp.net中access做的网站,拿到服务器上后就没有修改的权限了 页面布局用DIV好,还是TABLE好? 项目,请大伙报报价... 关于静态变量被回收的问题 100分求一个最初级的ajax问题,只要用过的都会,在线等,立马结贴 皮肤问题。 如何在DATAGRID显示的表中加入CHECK和下拉框,若绑定加入了,又如何进行选值加入数据库中,要求代码(C#) 怎么把INPUT变成ASP.NET的TextBox和Button??? 关于二维数组降序排列问题
用qq邮箱发送比较好。
http://blog.csdn.net/sxldfang/archive/2010/06/14/5670859.aspx
http://topic.csdn.net/u/20100608/17/600dbc8d-2e29-4856-9d22-70f9e843747b.html
public void SendMail(string mailContent, string toMailAddress)
{
try
{ MailMessage mail = new MailMessage();
mail.BodyFormat = MailFormat.Html;
mail.To = 收件人地址;
mail.Subject = 主题; mail.Body =内容; mail.BodyEncoding = Encoding.GetEncoding("GB2312");
mail.From =发送人邮件地址;
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1"); //basic authentication
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", ht["username"].ToString()); //set your username here
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", ht["password"].ToString()); //set your password here
SmtpMail.SmtpServer = ht["host"].ToString();//mail server
SmtpMail.Send(mail);
}
catch { } }