Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MailMessage msg = new MailMessage();
- msg.To.Add("JumperWasHere@gmail.com");
- msg.From = new MailAddress("ariffnaj2@gmail.com");
- msg.Subject="Test";
- msg.Body = "Test to send";
- SmtpClient smtp = new SmtpClient();
- smtp.Host = "relay-hosting.secureserver.net";
- smtp.Port = 25;
- smtp.Credentials = new System.Net.NetworkCredential("ariffnaj2@gmail.com", "My Password");
- smtp.Send(msg);
- lblmsg.Text = "Succesfully";
Add Comment
Please, Sign In to add comment