Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending HTML text via MAPI
Message
De
29/07/2004 10:20:45
 
 
À
29/07/2004 09:30:58
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00929158
Message ID:
00929193
Vues:
15
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform