Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ShellExecute
Message
From
11/02/2004 16:21:40
 
 
To
11/02/2004 13:00:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00876340
Message ID:
00876446
Views:
10
>Hi All. I can use ShellExecute() API to load my mail client and send an email by passing "mailto:jos@timbukone.com" as the filename parameter. I'm using Outlook. Will this technique work for any mail client that an end-user has installed?

Hi Jos,

Looking in my code for some code that you can use, I discovered what might be a design flaw (in my own code, to be clear about it).

I have written a routine, based on ShellExecute() indeed, that sends an email. If it fails, for example due to a missing email client, it will simply return false. So, you can tell the user that it fails, and eventually what caused the failure.

But I noticed that I disable the email button beforehand if there's no client for 'htm', based on FindExecutable(). It may be that, at the time I developed this stuff (not so long ago), I assumed that a browse client and email client go hand in hand.

But now I challenge this assumption. What do you think. May it be that some people don't have internet, but do have an email client??
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform