Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SmtpClient cv = new SmtpClient("smtp.live.com", 25);
- cv.EnableSsl = true;
- cv.Credentials = new NetworkCredential("email@hotmail.com", "password");
- try
- {
- cv.Send("email@hotmail.com", "anotheremail@hotmail.com", "", "Hello");
- MessageBox.Show("Done");
- }
- catch(Exception w)
- {
- MessageBox.Show("Not send" + w.InnerException);
- }
Add Comment
Please, Sign In to add comment