Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
? windows default email client
Message
De
09/04/2003 15:59:10
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
? windows default email client
Divers
Thread ID:
00775730
Message ID:
00775730
Vues:
34
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)
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform