Ø
Ø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
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