Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var mailSend = new MailMessage("abc@gmail.com", "abc@gmail.com");
- mailSend.Subject = "Subject";
- mailSend.Body = "Body";
- mailSend.Priority = MailPriority.High;
- var objSmtp = new SmtpClient();
- objSmtp.Host = "smtp.gmail.com";
- objSmtp.Credentials = new NetworkCredential("abc@gmail.com", "password");
- objSmtp.EnableSsl = true;
- objSmtp.Send(mailSend);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement