Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending HTML text via MAPI
Message
From
29/07/2004 10:20:02
 
 
To
29/07/2004 09:30:58
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00929158
Message ID:
00929192
Views:
14
This message has been marked as a message which has helped to the initial question of the thread.
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform