protected void btnEmail_Click(object sender, EventArgs e) { string emailFrom = "*****@*****.**"; string emailTo = txtEmail.Text; string subject = "Your credentials"; if (emailTo.Length == 0) { labEmail.Text = "Please enter a valid Email Address."; return; } // get credentials if email address is unique (ie count = 1) me.memberByEmail(emailTo, out int count, out string custId, out string membId, out string membPwd); if (count == 1) { string body = "Email: " + emailTo + "<br />Customer Id: " + custId + "<br />Username: "******"<br />Password: "******"That Email is not on file."; } else if (count > 1) { labEmail.Text = "That Email is NOT Unique, ie more than one learner has that email address."; } }