I am looking for a way to email all the values entered by a user into a form. Does this exist in asp.net ?
here is my email code:
Dim messagemain As String = emailbody
Dim message As New MailMessage()
message.IsBodyHtml = True
message.From = New MailAddress("[email protected]")
message.To.Add(New MailAddress("[email protected]"))
message.Subject = ("Response from form")
message.Body = (messagemain)
Dim client As New SmtpClient()
client.Host = "email.foo.foo"
client.Send(message)
I usually go through manually and ad all the necessaries to the emailbody var then send, but this form has over 200 fields.
Thanks.