Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ShellExecute
Message
From
11/02/2004 23:49:42
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00876340
Message ID:
00876567
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??

Hi Peter. I really dont know. I suppose a user in a company could be given email access but not internet. But a simple TRY/CATCH or error trap will solve any failures anyway.
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Reply
Map
View

Click here to load this message in the networking platform