Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exchange Server check
Message
From
20/09/2001 11:48:45
 
 
To
20/09/2001 11:18:31
Monte Murdock
Universal American Mortgage Company
Clearwater, Florida, United States
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00558770
Message ID:
00558783
Views:
20
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform