try { MailMessage mail = new MailMessage(); mail.To = "me@me.net"; mail.Cc = "me@rediffmail.com"; mail.From = txtEmail.Text; mail.Subject = "Comment"; mail.Body = "Comment" + ":" + txtComment.Text + " " + " " + "Address" + ":" + txtAddress.Text + " " + " " + "Phone" + ":" + txtPhone.Text; mail.BodyFormat = MailFormat.Html; SmtpMail.SmtpServer = "webmail.me.net"; SmtpMail.Send(mail); lblDisplay.Text = "Successfully Posted"; } catch (Exception ex) { lblDisplay.Text = ex.Message; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)