jmail.SMTPMailClass mail = new jmail.SMTPMailClass();
jmail.MessageClass msg = new jmail.MessageClass();
msg.From = "[email protected]";
msg.AddRecipient("[email protected]", " Server来信", "");
msg.Body = "HaHa!!";
msg.Subject = " jamil to est";
msg.MailServerUserName = "[email protected]";
msg.MailServerPassWord = "123456";
msg.AddAttachment("c:\\wgscd2.xml", false, "xml");//发送附件;
msg.Send("smtp.sina.com.cn", false);
msg.Close();
return true;
上面代码有什么问题吗?为什么163的邮箱可以发成功,而sina的邮箱就发不出去呢.