Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Send GroupWise mail from VFP?
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00209997
Message ID:
00210000
Views:
24
Michael,

If your users have GroupWise set up as their default internet e-mail app you can probably use ShellExecute with a mailto tag. Something like this:
DECLARE INTEGER GetActiveWindow IN win32api
hwnd=GetActiveWindow()
DECLARE INTEGER ShellExecute IN shell32 INTEGER, STRING, ;
  STRING, STRING, STRING, INTEGER
m.lnExecResult=ShellExecute(hwnd,'open','mailto:user@company.com', ;
  '', '', 5)
ShellExecute will run whatever program is registered for the file you pass it. It's smart enough to work with e-mail and web addresses.

>I'd like to use VFP to create a new, empty GroupWise message with the recipient's EMail address filled in and ready to go.
>
>I thought I could use the MAPI control, but I cannot seem to get the syntax right. MSKB tells me how to send a message programmatically, but I just wanna fill in the recipient and let the user do the rest.
>
>Advise?
>
>TIA
Previous
Reply
Map
View

Click here to load this message in the networking platform