Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
? windows default email client
Message
De
09/04/2003 16:12:39
Fabian Belo
Independent Developer
Argentine
 
 
À
09/04/2003 15:59:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00775730
Message ID:
00775740
Vues:
15
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform