Guest User

Untitled

a guest
May 11th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. SmtpClient cv = new SmtpClient("smtp.live.com", 25);
  2. cv.EnableSsl = true;
  3. cv.Credentials = new NetworkCredential("email@hotmail.com", "password");
  4. try
  5. {
  6. cv.Send("email@hotmail.com", "anotheremail@hotmail.com", "", "Hello");
  7. MessageBox.Show("Done");
  8. }
  9. catch(Exception w)
  10. {
  11. MessageBox.Show("Not send" + w.InnerException);
  12. }
Add Comment
Please, Sign In to add comment