Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Exchange Server check
Message
 
 
À
20/09/2001 11:18:31
Monte Murdock
Universal American Mortgage Company
Clearwater, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00558770
Message ID:
00558783
Vues:
19
Hi!

You can use ON ERROR command to catch the error and see if it happens.

>Does anyone know of anyway to check to see, if Outlook can send an e-mail?
>
>The following code runs:
>
>loOutlook = CREATEOBJECT('outlook.application')
>loNameSpace = loOutlook.GetNameSpace("MAPI")
>
>*This is where the code fails if the Exchange Server is down. Is there some check I can do before running this code?
>loRecipient = loNameSpace.CreateRecipient("Monte Murdock")
>
>Thank you,
>
>MOnTe
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform