I understand how to send mail using MailMessage, but what if I want to add additional fields to the body of the email, say a telephone and fax number, or any number of fields? I think it should go in the body, but I am not getting all to show correctly on the email. Can someone explain how I might expand what can be sent in the email body? Below is the code I am starting with.
Using .NET 2.0 and VB.
Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
'Email address to send contact for to
Const ToAddress As String = "firstname.lastname@example.org"
'Create the MailMessage instance
Dim mm As New MailMessage(tbEmail.Text, ToAddress)
'Assign the MailMessage's properties
mm.Subject = dlSubject.Text
mm.Body = tbComments.Text
mm.IsBodyHtml = False
'Create the SmtpClient object
Dim smtp As New SmtpClient
'Send the MailMessage using the Web.config settings)
'Show the EmailSentForm Panel and hide the EmailForm Panel
EmailSentForm.Visible = True
Me.contactform.Visible = False
'ContactForm.Visible = False