MailMessage objEmail objEmail.To objEmail.From objEmail.Cc objEmail.Subject objEmail.

Body

new MailMessage(); txtTo.Text; txtFrom.Text; txtCc.Text; "Test Email"; txtName.Text + ", " + txtComments.Text; objEmail.Priority = MailPriority.High; //SmtpMail.SmtpServer = "localhost"; try{ SmtpMail.Send(objEmail); Response.Write("Your Email has been sent sucessfully Thank You"); } catch (Exception exc){ Response.Write("Send failure: " + exc.ToString()); }

= = = = = =

Sign up to vote on this title
UsefulNot useful