C# ile E-Posta Yollama

Konu sahibi son olarak 3315 gün önce görüldü
Kod:
MailMessage msg = new MailMessage();
msg.To = "[email protected]";     // Kime
msg.From = "[email protected];     // Kimden
msg.Subject = "E-Posta Konusu";     // Konu
msg.Body = "E-Posta Metni";     // Mesja
msg.IsBodyHtml = false;          // HTML formatı (true / false)

SmtpClient smtp = new SmtpClient();     
smtp.Host = "mail.site.com";          // SMTP adresi
smtp.Send(msg);
 
Geri