在C# asp.net 中怎么发邮件? 关注楼主的问题.用c#.net发邮件,是不是要再加一个邮件服务器 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 protected void Send_Email(Object Sender, EventArgs e) { MailMessage mail = new MailMessage(); mail.To = "[email protected]"; mail.From = "[email protected]"; mail.BodyFormat = MailFormat.Html; mail.Subject = "subject"; mail.Body = "body"; SmtpMail.SmtpServer="tom.com"; SmtpMail.Send(mail); Response.Flush(); Message.Text = "Message Sent...<br><br>"+"<a href=\"sendMail.aspx\">Go Back</a>"; } you should set SmtpMail.SmtpServer="ip of localhost" ;and set SmtpMail.SmtpServer="ip of the proxy", if you get on internet via a proxy server SQL登录无关联 求一正则表达式 treeview的问题 用C#怎么扫描端口? 买了两本大家推荐的书,可机器不支持2005,怎么办? 初学者的XML问题 如何利用C#在WORD中插入一个5列3行的表格 怎样获得窗口中一块矩形内的 Bitmap 图像? 介绍一本c#的书籍 新手请问各位高手 初学者的弱智问题,还请大虾们指点! 设置ListView的Viewitem为LargeIcon后,怎样显示image图片
{
MailMessage mail = new MailMessage();
mail.To = "[email protected]";
mail.From = "[email protected]";
mail.BodyFormat = MailFormat.Html;
mail.Subject = "subject";
mail.Body = "body";
SmtpMail.SmtpServer="tom.com"; SmtpMail.Send(mail); Response.Flush();
Message.Text = "Message Sent...<br><br>"+"<a href=\"sendMail.aspx\">Go Back</a>";
}
and set SmtpMail.SmtpServer="ip of the proxy", if you get on internet via a proxy server