How to send Form details to e-mail??
-
here is simple example of Form Name :[TextBox1] Age :[textBox2] Gender : male/female [Radio Buttons] Country : List of all countries [list] [Submit] <- button1 ------------------------------------------ Now here is heart of question...... suppose guest entered.... Name :John Age :21 Gender : male Country : United Stated of America [Submit] <-- button1 -------------------------------------------- As the above information if John has entered the details , then can that information send to specific e-mail ID with all details ??? PLEASE URGENT HELP NEEDED................
-
here is simple example of Form Name :[TextBox1] Age :[textBox2] Gender : male/female [Radio Buttons] Country : List of all countries [list] [Submit] <- button1 ------------------------------------------ Now here is heart of question...... suppose guest entered.... Name :John Age :21 Gender : male Country : United Stated of America [Submit] <-- button1 -------------------------------------------- As the above information if John has entered the details , then can that information send to specific e-mail ID with all details ??? PLEASE URGENT HELP NEEDED................
Dim objEmail as New MailMessage() objEmail.To = txtTo.Text objEmail.From = txtFrom.Text objEmail.Cc = txtCc.Text objEmail.Subject = "Test Email" objEmail.Body = txtName.Text & ", " &txtComments.Text objEmail.Priority = MailPriority.High 'SmtpMail.SmtpServer = "your smtpserver" try SmtpMail.Send(EMail) Response.Write(Your E-mail has been sent sucessfully - _ Thank You) catch exc as Exception Response.Write("Send failure: " + exc.ToString()) End Try
Thanks Warm Regards Prakash-B