//TODO:发送邮件
private void Btn_Send_Click(object sender, System.EventArgs e)
{
msgTo.From = " amthlon@tom.com";
msgTo.BodyFormat = MailFormat.Text ;
msgTo.Body = mailtxt;
msgTo.Subject = title;
msgTo.Priority = MailPriority.Normal;
msgTo.To = " amthlon@tom.com;amthlon@sohu.com";
msgTo.Fields.Add(" http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1");
msgTo.Fields.Add(" http://schemas.microsoft.com/cdo/configuration/sendusername", "amthlon");
msgTo.Fields.Add(" http://schemas.microsoft.com/cdo/configuration/sendpassword", "pwd");
SmtpMail.SmtpServer = "smtp.tom.com";
SmtpMail.Send(msgTo);
}
private void Btn_Send_Click(object sender, System.EventArgs e)
{
msgTo.From = " amthlon@tom.com";
msgTo.BodyFormat = MailFormat.Text ;
msgTo.Body = mailtxt;
msgTo.Subject = title;
msgTo.Priority = MailPriority.Normal;
msgTo.To = " amthlon@tom.com;amthlon@sohu.com";
msgTo.Fields.Add(" http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1");
msgTo.Fields.Add(" http://schemas.microsoft.com/cdo/configuration/sendusername", "amthlon");
msgTo.Fields.Add(" http://schemas.microsoft.com/cdo/configuration/sendpassword", "pwd");
SmtpMail.SmtpServer = "smtp.tom.com";
SmtpMail.Send(msgTo);
}