Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
? windows default email client
Message
From
09/04/2003 15:59:10
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
? windows default email client
Miscellaneous
Thread ID:
00775730
Message ID:
00775730
Views:
36
How can I return the name of the windows default email client?

I have a bit of code that starts an email, but it errors out in the browser if a user has not setup a deault client. I need to trap that error and display a friendly box explaining it.
	LOCAL lcEmail, lcCCAddress, lcSubject, lcMessagebody
	lcEmailAddress = 's_tysinger@northstate.net'
	lcCCAddress = " "
	lcSubject = "MYSUBJECT"
	lcMessageBody = "MY MESSAGE"

	ShellExecute(0, "", "mailto:" + lcEmailAddress + "?Subject=" + lcSubject + ;
	                    "&CC=" + lcCCAddress + "&body=" + lcMessageBody, "", "", 1)
Next
Reply
Map
View

Click here to load this message in the networking platform