Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Email
Message
From
15/10/2002 15:10:18
 
 
To
15/10/2002 15:04:39
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Re: Email
Miscellaneous
Thread ID:
00711448
Message ID:
00711453
Views:
8
Sure, there's a way ;)

Here is an HTML example. You can find the Outlook object model in VBAOUTL9.CHM (for Outlook 2000). There are other ways as well, such as MAPI (but you can't send HTML with that method). There are also methods that do not require Outlook...
lcHTMLString = [<html><body>Hello <b>world!</b></body></html>]

oOutlook = createobject("outlook.application")
oitem = oOutlook.createitem(0)
oitem.recipients.add("somebody@somewhere.com")
oitem.subject =  "Test Sending HMTL message from VFP"
oitem.HTMLBody = lcHTMLString  
oitem.send()
>Is there a way to sent an Email through Outlook using FoxPro? I was looking to see if there was a way to call Outlook with parameters or some pre-existing OLE object. Am I just missing the parameters, or would I need to incorporate some external DLL file to make this happen. Any ideas?
>
>TIA
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform