smtpclient - HTML in email body showing as HTML itself. Not rendering ASP.NET Mail -


im facing little trouble when sending emails asp.net (vb). here code im on

            using mm new mailmessage("myemai@abcd.com", mc.mailto)                  if mc.mailcc.trim <> ""                     mm.cc.add(mc.mailcc)                 end if                 if mc.mailbcc.trim <> ""                     mm.cc.add(mc.mailbcc)                 end if                 mm.isbodyhtml = true                 mm.subject = mc.mailsubject                 mm.body = b                 dim smtp new smtpclient()                    try                     smtp.send(mm)                 catch ex smtpexception                     gf.logarray(ja, ex.message)                     dim statuscode smtpstatuscode                     statuscode = ex.statuscode                     if statuscode = smtpstatuscode.mailboxbusy or statuscode = smtpstatuscode.mailboxunavailable or statuscode = smtpstatuscode.transactionfailed                         system.threading.thread.sleep(5000)                         smtp.send(mm)                      end if                   end try              end using 

the issue having is. mails sending fine. body showing html. not rendering specified mm.isbodyhtml=true. suggestions please...

this message got

enter image description here

i think main problem in html message body. try send in message body table content, without doctype, head , other content.

becouse mail agent render message in exist html page, couldn`t render page in page agent encode message body string.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -