728x90
MailMessage sendMail = new MailMessage();
sendMail.IsBodyHtml = true;
sendMail.Body = "<html><body>TEST</body></html>";
sendMail.BodyEncoding = System.Text.Encoding.UTF8;
sendMail.From = new MailAddress();
sendMail.To.Add(new MailAddress());
smtpServer.UseDefaultCredentials = false;
smtpServer.EnableSsl = false;
smtpServer.DeliveryMethod = SmtpDeliveryMethod.Network;
smtpServer.Send(sendMail);
sendMail.Dispose();
728x90
반응형
'Software > C#' 카테고리의 다른 글
C# DevExpress - WinForm GridControl Button (0) | 2025.01.27 |
---|---|
C# 시작하기 - Mail Send 2 (0) | 2025.01.27 |
C# DevExpress - WinForm GridControl CheckEdit (0) | 2025.01.27 |
C# DevExpress - WinForm GridControl ImageCombo (0) | 2025.01.27 |
C# DevExpress - WinForm GridControl ComboBox (0) | 2025.01.27 |