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:
00752711
Views:
15
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform