System.Net.Mail.SmtpClient 客户端 = new SmtpClient(SmtpServer);
client.UseDefaultCredentials = false;
client.Credentials = new System.Net.NetworkCredential(UID, PWD);
client.DeliveryMethod = SmtpDeliveryMethod.Network;
System.Net.Mail.MailMessage 消息 = new MailMessage(From,TO,Subject,Body);
message.BodyEncoding = System.Text.Encoding.UTF8;
消息.IsBodyHtml = true;
客户端.发送(消息);