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.comICQ #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.