W
William Gower
I am creating an email message to be sent from a web page. How do I embed
variables like strFirstName, strLastName etc. into the body
I would like it to say.
Last Name : strLastName ex. Gower
First Name: strFirstName ex. Bill
Dim strFirstName As String = CType(Request.QueryString("FirstName"), String)
Dim strLastName As String = CType(Request.QueryString("LastName"), String)
Dim objMailMessage As Mail.MailMessage
SmtpMail.SmtpServer = "mailhub.mysite.com"
objMailMessage = New Mail.MailMessage
objMailMessage.From = "(e-mail address removed)"
objMailMessage.To = "(e-mail address removed)"
objMailMessage.Subject = "A Member has made the following changes to their
personal information"
objMailMessage.Body = ""
SmtpMail.Send(objMailMessage)
variables like strFirstName, strLastName etc. into the body
I would like it to say.
Last Name : strLastName ex. Gower
First Name: strFirstName ex. Bill
Dim strFirstName As String = CType(Request.QueryString("FirstName"), String)
Dim strLastName As String = CType(Request.QueryString("LastName"), String)
Dim objMailMessage As Mail.MailMessage
SmtpMail.SmtpServer = "mailhub.mysite.com"
objMailMessage = New Mail.MailMessage
objMailMessage.From = "(e-mail address removed)"
objMailMessage.To = "(e-mail address removed)"
objMailMessage.Subject = "A Member has made the following changes to their
personal information"
objMailMessage.Body = ""
SmtpMail.Send(objMailMessage)