Пример #1
0
 private void button2_Click(object sender, EventArgs e)
 {
     dynamic d = new dynamic();
     d.SendEmail(nameTxt.Text, contentTxt.Text, thisUsername,thisPassword);
     MessageBox.Show("Your Feedback Has Been Successfully Sent. Thank You", "Feedback");
     this.Hide();
 }
Пример #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     try
     {
         dynamic d = new dynamic();
         d.checkaccount(usernameTxt.Text, passwordTxt.Text);
         username = usernameTxt.Text;
         password = passwordTxt.Text;
         MailSend ms = new MailSend(username, password);
         ms.Show();
         this.Hide();
     }
     catch
     {
         MessageBox.Show("Incorrect Email or Password please rectify", "Error");
     }
 }