private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { SendMail sendMail = new SendMail(textBoxBody.Text, textBoxName.Text, textBoxSubject.Text); sendMail.MySendMail(); }
private void buttonSubmit_Click(object sender, EventArgs e) { SendMail sendMail = new SendMail(textBoxBody.Text, textBoxName.Text, textBoxSubject.Text); sendMail.MySendMail(); }