oMailItem.BodyFormat = 2 && olFormatHTMLHTH
>oOutlookApp = createobject('outlook.application') >oMailItem = oOutlookApp.createitem(0) > >with oMailItem > .HTMLBody = "Here comes the HTML code" > .subject = "Here comes the subject" > .to = "myemail@myorg.com.br" > .send() >endwith >>When I try to run it I get an "OLE error code 0x80020006: unknown name" error in the line containing the ".HTMLBody = "Here comes the HTML code"". If I comment that line it works ok.