>Hi,
>
>I'm using this routine below to send messages via MAPI. It works fine, but I just can send plain ASCII text in message's body.
>
>There is a means to send it as HTML:
>
>TIA,
>
>Fernando
>
>objSession = CreateObject ("MAPI.Session")
>
>objSession.Logon ("MyProfile", 0, 0, 1)
>
>objMessage = objSession.Outbox.Messages.Add
>objMessage.Subject = "Message body types test"
>objMessage.Text = "This is a plain text message body. What should I do to render it in HTML?"
>
>objRecip = objMessage.Recipients.Add
>objRecip.Name = "someuser@somedomain.com"
>objRecip.Type = 1
>
>objRecip.Resolve
>objMessage.Update
>objMessage.Send
>
hi Fernando,
I cannot test it since I haven't got Outlook installed.
With the 'old' msmapi control(MSMAPI.MAPISession), I used to get away with it by having no text message body and adding only one html file attachment. Having no text showed the html file.
Maybe it's worth a try
Gregory