private void button3_Click(object sender, EventArgs e) { StringCryptography sTR = new StringCryptography(); createLogs.logs(textBox3.Text + "Decrypted to " + textBox4.Text); textBox4.Text = sTR.decryptor(textBox3.Text); }
private void button1_Click(object sender, EventArgs e) { try { List <string> to = new List <string>(); List <string> cc = new List <string>(); List <string> emailMess = new List <string>(); string sendEmail = sendingEmail.SendEmailFunction( "*****@*****.**" , "*****@*****.**" , stringCryptography.decryptor("9n3c6z3umrDdrWhbCkEySg==") , "172.16.195.10" , 25 , to , cc , @"C:\Users\jntaller\Desktop\SampleDirectory" , "TEST MAIL SUBJECT" , emailMess ); createLogs.logs("Message Sent"); MessageBox.Show(sendEmail); } catch (Exception ee) { createLogs.logs(ee.ToString()); MessageBox.Show(ee.ToString()); } }