Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to send HTML with MAPI
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00437190
Message ID:
00437466
Views:
18
Nikos,
You can send HTML in the body of the mail with Outlook 2000 in this way

* Mailrep.htm is your HTML file

lcBody = FILETOSTR("MailRep.htm")

o=createobject("outlook.application")
oNS = o.GetNameSpace("MAPI")
oitem=o.createitem(0)
oitem.display
oitem.recipients.add("pepe@pepe.com")
oitem.subject="Something"
oitem.htmlbody=lcbody
oitem.send
oitem=null
o=null

HTH.


>I am try to send HTML mail (not only text) and then display like in outlook viewer. I am using MAPI with Visual Foxpro but it send the email like text with attachments.
>How can i do this with MAPI (can i use MIME) ?
>
>Nick.
Carlos Etcheverry
Monte Grande
Buenos Aires
Argentina

Es mejor un mal dia de pesca que un buen dia de trabajo!
Previous
Reply
Map
View

Click here to load this message in the networking platform