我想在電子郵件中添加一些html。我試過以下。發送HTML郵件asp
vFromName = "someone"
vFromAddress = "someemail"
vTo = "recipient"
vSubject="someSubject"
vBodyofemail = "<html><table><tr><td><b>SomeText</b></td></tr></table></html>"
Call SendMail()
sub SendMail()
'change to address of your own SMTP server
strHost = "mail.internal.rouses.com"
Set Mail = Server.CreateObject("Persits.MailSender")
'enter valid SMTP host
Mail.Host = strHost
'From eMail address
Mail.FromName = vFromName
'From address
Mail.From = vFromAddress
'To eMail address
Mail.AddAddress vTo
'message subject
Mail.Subject = vSubject
'message body
Mail.Body = vBodyOfEmail
Mail.Send
end sub
我該怎麼做?我試過Mail.HtmlBody,但那也不管用。電子郵件被髮送,但我看到的都是html的標籤。
什麼不行?電子郵件是否發送並且您看到html,或者您是否收到電子郵件? – 2009-07-03 15:03:45
電子郵件已發送。我只是看到了html標籤,但不是他們應該做的。 – Eric 2009-07-03 15:06:01
你在用什麼讀卡器? – 2009-07-03 15:34:29