Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Standard email client
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00363492
Message ID:
00363505
Vues:
17
Karsten

read the HKEY_CLASSES_ROOT\mailto\shell\open\command key. In may case (Outlook is the default email client), the value is "D:\Office\Office\OUTLOOK.EXE" -c IPM.Note /m "%1". Other clients will doubtless have different values. You could parse the text to get the execuatble name, or just check for the string OUTLOOK.EXE.

BTW, FWIW Mark, you don't need to check both VARTYPE() and ISNULL() - VARTYPE() returns "X" if the variable contains a .NULL. :-)

Cheers,

Andrew


>I do not think, that this is the right way. What happend if on the client machine Outlook is installed, but another email client is the standard client.
>Then I can create an Outlook object, but I want to send emails via the standard client.
>
>>>I want to determine the standard email client. How can I do this.
>>>The reason to find out which client is used is, that I want to use Outlook automation if it is Outlook, in the other case I want to use ShellExecute.
>>
>>You could try to create an Outlook object, then if that fails, go on to use ShellExecute
>>
>>LOCAL loMail
>>loMail = CREATEOBJECT("Outlook.Application") && Not sure if classname is correct
>>IF VARTYPE( loMail) = "O" AND NOT ISNULL( loMail)
>> Do Outlook stuff
>>ELSE
>> Do ShellExecute Stuff
>>ENDIF


If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?


From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."


All my FoxTalk and other articles are available on my web site.


Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform