Y
Yossi Naggar
Hello to everyone,
Does anybody know how to send html formatted messages with asp.net?
I tried to send such messages with the code below but the content type is wrong.
The content type is multi-part and not html/text as expected.
The code i use is:
mailmsg.To = "(e-mail address removed)"
mailmsg.Subject = "some subject string"
mailmsg.Body = <-- an html format body -->
mailmsg.From = "(e-mail address removed)"
mailmsg.BodyFormat = MailFormat.Html
Try
SmtpMail.SmtpServer = "127.0.0.1"
SmtpMail.Send(mailmsg)
Catch exc As Exception
Response.Write(exc.Message)
Response.End()
End Try
Does anybody know how to send html formatted messages with asp.net?
I tried to send such messages with the code below but the content type is wrong.
The content type is multi-part and not html/text as expected.
The code i use is:
mailmsg.To = "(e-mail address removed)"
mailmsg.Subject = "some subject string"
mailmsg.Body = <-- an html format body -->
mailmsg.From = "(e-mail address removed)"
mailmsg.BodyFormat = MailFormat.Html
Try
SmtpMail.SmtpServer = "127.0.0.1"
SmtpMail.Send(mailmsg)
Catch exc As Exception
Response.Write(exc.Message)
Response.End()
End Try