function SendEMail(){
var jMail = new ActiveXObject("JMAIL.Message");
jMail.Silent = true;
jMail.Charset = "gb2312";
jMail.FromName = "sender" //发件人
jMail.From = "zhoudeling@wire180.com"; //发送人的邮件地址
jMail.AddRecipient("zhoudeling@wire180.com"); //收件人的邮件地址
jMail.Subject = "测试邮件";
jMail.Body = "邮件内容";
jMail.MailServerUserName="zhouling_work@163.com";
jMail.MailServerPassWord="zhoudeling";
var ret = jMail.Send("smtp.163.com");
if(ret == false)
{
alert("fail");
}
else
{
alert("success");
}
jMail.Close();
}