richardrekos
MIS
I cannot figure out how to send messages in HTML format. My code is below, do I need something else besides objMail.BodyFormat = System.Web.Mail.MailFormat.Html?
Thanks, Rich
<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 = "richard.rekos@questionmark.com"
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
<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 = "richard.rekos@questionmark.com"
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>