FancyPrairie
Programmer
How do I send a message that consists of html code so that outlook will interpret the html code rather than displaying the code itself (i.e. "content-type: text/html" rather than "content-type: text". (Note that in my application, sending it as an attachment won't work.) Below is the code I'm using:
Dim objOutlk
Dim objMail
Dim strMsg
Const olMailItem = 0
Set objOutlk = createobject("Outlook.Application"
Set objMail = objOutlk.createitem(olMailItem)
objMail.To = "somebody"
objMail.subject = "This is my subject line"
objMail.body = "<html><head></head><body>Hello world</body></html>"
objMail.send
objMail = nothing
Set objOutlk = nothing
Dim objOutlk
Dim objMail
Dim strMsg
Const olMailItem = 0
Set objOutlk = createobject("Outlook.Application"
Set objMail = objOutlk.createitem(olMailItem)
objMail.To = "somebody"
objMail.subject = "This is my subject line"
objMail.body = "<html><head></head><body>Hello world</body></html>"
objMail.send
objMail = nothing
Set objOutlk = nothing