Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using the Window's ShellExecute Command
Message
 
 
To
15/09/2005 13:50:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01050007
Message ID:
01050014
Views:
12
The 'MAILTO:' is designed to populate basic properties of email and open it in the default email client. For automated email sending see http://fox.wikis.com/wc.dll?Wiki~AutomatedEmail.

>I am trying to use Microsoft Outlook Express to send emails from Visual Fox Pro. I can get the Microsoft Outlook Express application to launch, but I also want it to send the email automately with end-users pressing the send button. List below is the source code that I am using.
>
>***************************************************************************
>DECLARE INTEGER ShellExecute IN shell32.dll ;
> INTEGER hndWin, STRING cAction, STRING cFileName, ;
> STRING cParams, STRING cDir, INTEGER nShowWin
>lcMail = "mailto:someone@mycompany.com"+ ;
> "?CC= someone@yahoo.com&Subject= Invitation"+ ;
> "&Body= Welcome - Test Data."
>ShellExecute(0,"Open",lcMail,"","",1)
>****************************************************************************
>
>I am seeking a way to automately send the email, once this code has been implemented\process. Do anyone have any suggestions?
>
>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform