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;
客戶端.發送(訊息);