Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creatiating and displaying a new e-mail message
Message
From
27/01/2000 09:42:59
 
 
To
27/01/2000 09:18:45
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00323507
Message ID:
00323526
Views:
25
>I need to launch the default e-mail client with the new message. The problem is I don't know what kind of e-mail client it is going to be. Basically what I need to accomplish exists, for example, in Microsoft Word: choose File\Send To\Mail Recipient from the menu, and the default e-mail client with the new message pops up. I need to do the same thing but from VFP.

You can use the ShellExecute() API call or FFC class to launch a message, or Shell.Application can launch it (what i normally use)

oShell = CREATEOBJ('Shell.Application')
oShell.Open('mailto:edrauh@earthlink.net')

or

DECLARE INTEGER ShellExecute IN SHELL32 INTEGER, STRING, STRING, STRING, STRING, INTEGER
=ShellExecute(0,'OPEN','mailto:edrauh@earthlink.net','','',1)

or the FFC class, yadda yadda yadda...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform