你字节连接到任意一个smtp服务器都可以发邮件啊。为什么要用webeasymail??
private void Form1_Click(object sender, System.EventArgs e)
{
System.Web.Mail.MailMessage mm=new MailMessage();
mm.To="[email protected]";
mm.From="[email protected]";
mm.Subject="c# smtp.163.com";
mm.Body="jfaskdjflkasdjfklas";
mm.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate",1);
mm.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "帐户");
mm.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "密码"); SmtpMail.SmtpServer="smtp.163.com";
SmtpMail.Send(mm);
}
private void Form1_Click(object sender, System.EventArgs e)
{
System.Web.Mail.MailMessage mm=new MailMessage();
mm.To="[email protected]";
mm.From="[email protected]";
mm.Subject="c# smtp.163.com";
mm.Body="jfaskdjflkasdjfklas";
mm.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate",1);
mm.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "帐户");
mm.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "密码"); SmtpMail.SmtpServer="smtp.163.com";
SmtpMail.Send(mm);
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货