Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Send GroupWise mail from VFP?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00209997
Message ID:
00210000
Vues:
23
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform