Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine if an email program is installed?
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00752609
Message ID:
00752747
Views:
14
>>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.
>

>
>He should have it, doesn't he?, It's the same that comes with Fox Foundation Classes, doesn't it?

I use registry.prg from Rick Strahl. But it doesn't really matter in that particular case. His program is public domain and can be downloaded from west-wind site.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform