Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine if an email program is installed?
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00752609
Message ID:
00752711
Vues:
10
I appologize, usually I add the name of the person, who gave the code to me. In this case I forgot to do it:

CheckDefaultEMail:
#include registry.h
local oRegistry, lcMailClient
oRegistry = newobject("Registry","Registry.prg")
**** getting the default email client NAME! **********
lcMailClient = ;
	oRegistry.ReadRegistryString(HKEY_LOCAL_MACHINE, ;
	"Software\Clients\Mail",  "")

if empty(m.lcMailClient)
	=messagebox("No email client installed")
	return ""
endif

return m.lcMailClient
You also need registry.prg and registry.h files Send me request by e-mail, if you don't have them.


>I have 2 questions?
>
>1)
>
>How can I determine from Fox app that a user has an email clinet such as outlook or outlook express installed?
>
>2)
>
>How can i envoke the compose program for a new message from within a Fox app.
>
>Regards,
>
>Stuart
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform