Guest User

Untitled

a guest
Nov 2nd, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. MailMessage msg = new MailMessage();
  2. msg.To.Add("JumperWasHere@gmail.com");
  3. msg.From = new MailAddress("ariffnaj2@gmail.com");
  4. msg.Subject="Test";
  5. msg.Body = "Test to send";
  6. SmtpClient smtp = new SmtpClient();
  7. smtp.Host = "relay-hosting.secureserver.net";
  8. smtp.Port = 25;
  9. smtp.Credentials = new System.Net.NetworkCredential("ariffnaj2@gmail.com", "My Password");
  10. smtp.Send(msg);
  11. lblmsg.Text = "Succesfully";
Add Comment
Please, Sign In to add comment