System.Net.Mail ile program içinden e-posta yollama kodu
Kod:
[COLOR="RoyalBlue"][B]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);[/B][/COLOR]
