Hello. How do I format the message that is sent from a form? Here is the code I am using to send the message:
Dim mailMessage As New MailMessage()
mailMessage.From = "abc@domain.com"
mailMessage.To = "def@domain.com"
mailMessage.body = txtstorenum.Text
SmtpMail.Send(mailMessage)
The body will then show just the # from the txtstorenum text box. How can I format the body to show multiple fields from the form? I would also like to format it so the person who receives the message knows what they are looking at. Here is an example:
From: txtname.Text
Store #: txtstorenum.Text
I'm sure this is easy to do, I just don't have much programming experience. Thanks.
Dim mailMessage As New MailMessage()
mailMessage.From = "abc@domain.com"
mailMessage.To = "def@domain.com"
mailMessage.body = txtstorenum.Text
SmtpMail.Send(mailMessage)
The body will then show just the # from the txtstorenum text box. How can I format the body to show multiple fields from the form? I would also like to format it so the person who receives the message knows what they are looking at. Here is an example:
From: txtname.Text
Store #: txtstorenum.Text
I'm sure this is easy to do, I just don't have much programming experience. Thanks.