G
Guest
I can't seem to get messages to be sent in HTML format. All of my test
messages arrive in my inbox in text format. Please see code below. Am I
missing something? I specified HTML as the body format:
<script language="vb" runat="server">
Sub sendmessage_Click(sender as Object, e as EventArgs)
Dim objMail as New MailMessage()
objMail.To = Email.Text
objMail.From = "(e-mail address removed)"
objMail.BodyFormat = System.Web.Mail.MailFormat.Html
objMail.Subject = "Subject.Text"
objMail.Body = body.text
SmtpMail.SmtpServer = "localhost"
SmtpMail.Send(objMail)
message.Text = "Your Email was sent successfully"
End Sub
</script>
Thanks, Rich
messages arrive in my inbox in text format. Please see code below. Am I
missing something? I specified HTML as the body format:
<script language="vb" runat="server">
Sub sendmessage_Click(sender as Object, e as EventArgs)
Dim objMail as New MailMessage()
objMail.To = Email.Text
objMail.From = "(e-mail address removed)"
objMail.BodyFormat = System.Web.Mail.MailFormat.Html
objMail.Subject = "Subject.Text"
objMail.Body = body.text
SmtpMail.SmtpServer = "localhost"
SmtpMail.Send(objMail)
message.Text = "Your Email was sent successfully"
End Sub
</script>
Thanks, Rich