public void SendMail(){
MailMessage mail = new MailMessage();
mail.To.Add([email protected]);
mail.From = new MailAddress([email protected]);
mail.Subject = "Test"; string Body = "Lorem ipsum dolor sit amet,...
mail.Subject = "Test";
SmtpClient smtp = new SmtpClient("smtp.gmail.com");
try{
smtp.Send(mail);
}
catch (Exception ex){
MessageBox.Show(ex.ToString());