html mail with asp.net (VB)

Ø

Øyvind Isaksen

Hello!

Have made a mail procedure that works fine, but the mail is NOT sent in
HTML-format.
Someone who knows why this dont work?? Here is my code:


---------------------------------------------------------
Imports System.Web.Mail

Public Class subrutines

Public Shared Sub SendMail(ByVal inputTo As String, ByVal inputFrom As
String, ByVal inputSubject As String, ByVal inputBody As String)

Dim objMail As New MailMessage()
objMail.To = inputTo
objMail.From = inputFrom
objMail.BodyFormat = MailFormat.Html
objMail.Subject = inputSubject
objMail.Body = inputBody
SmtpMail.Send(objMail)

End Sub

End Class
 
Ø

Øyvind Isaksen

Yes, inputBody include HTML markup. But the mail will not have example bold
text, it is written like this: <b>text here>/b>....

I wonder why?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top