Aloha,
I made an email contact form and have several text boxes for the user to input their information. I have text boxes for the users name, email, and phone. I want to be able to display all of that information within the body of the
email. How can I do that? I currently have it working and displaying all of the information, but the format is messed up.
Dim mail As New MailMessage()
Dim smtp As New SmtpClient
mail.From = New MailAddress(email.Text)
mail.To.Add("user@gmail.com")
mail.Subject = subject.Text
mail.Body = name.Text & email.Text & phone.Text & body.Text
mail.IsBodyHtml = True
smtp.EnableSsl = True
smtp.Send(mail)
Output.Text = "Your Message has beent sent."
it dumps the name, email, phone, and body of the form into one line and has no spaces in be ...
Go to the complete details ...