using System;
using System.Collections;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Net.Mail;
using System.Net;
public partial class _55 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)

if (!Page.IsPostBack)
{
Dictionary<string, string> userInfo = new Dictionary<string, string>();
userInfo.Add("姓名", Request.Form["JName"]);
System.Text.StringBuilder sb = new System.Text.StringBuilder();
foreach (KeyValuePair<string,string> si in userInfo) //Dictionary<Tkey,TValue>迭代
{
sb.Append(si.Key + ":" + si.Value + "<br />");
}
using (MailMessage ms = new MailMessage("[email protected] ", "[email protected] ")) //发送邮件地址应该同下面验证的用户是同一个用户

ms.Subject = "信息! http://www.rsion.com/";
ms.Body ="该邮件发送日期:"+DateTime.Now.ToString()+"<br/><br/>信息如下:<br/>"+sb.ToString();
ms.IsBodyHtml = true;
SmtpClient sc = new SmtpClient("smtp.126.com");//发送邮件地址
sc.UseDefaultCredentials = true; //默认验证
sc.Credentials = new System.Net.NetworkCredential("[email protected]", "5865496");//用户密码
try
{
sc.Send(ms);
}
catch { Response.Write("对不起发送失败!邮件服务器验证失败引起的"); }
}
}
}}
验证失败~是怎么回事   求高手帮忙