void helpMe_MailSendResponse(object sender, MailServerResponseArgs e) { switch(e.response) { case "1": successMessage.Text = "No data sent."; break; case "2": successMessage.Text = "Message has been sent."; break; case "3": successMessage.Text = "There have been problems sending your message."; break; default: successMessage.Text = "Uknown error occured."; break; } }
void helpMe_SendingErrorOccured(object sender, MailServerResponseArgs e) { successMessage.Text = "Mail transport error"; }