using System.Web.Util;
using System.Web.Mail;
using jmail;
private void Button1_Click(object sender, System.EventArgs e)
{
jmail.Message jmail=new jmail.Message();
jmail.Silent =true;
jmail.Logging=true;
jmail.MailServerPassWord ="123456";
jmail.MailServerUserName ="suhuiyong_2000";
jmail.Charset="GB2312";
jmail.ContentType="text/html";
jmail.AddRecipient("suhuiyong_2000@sina.com","","");
jmail.From ="suhuiyong_2000@sina.com";
jmail.Body ="asdfdsf";
jmail.Subject ="asdfdsf";
jmail.Send("smtp.sina.com",true);
jmail.Close();
}
点击按钮后,邮件没有执行发送,也没有提示出错,请高手帮忙处理一下!
[此贴子已经被作者于2007-6-22 15:25:51编辑过]