Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
? windows default email client
Message
From
09/04/2003 16:12:39
Fabian Belo
Independent Developer
Argentina
 
 
To
09/04/2003 15:59:10
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00775730
Message ID:
00775740
Views:
17
See Message #735505

>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)
"Since I've read that alcohol is bad... I quit reading."
Me


http://www.fabianbelo.com.ar
Previous
Reply
Map
View

Click here to load this message in the networking platform