Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
EMAIL Server is Down
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
EMAIL Server is Down
Miscellaneous
Thread ID:
00712524
Message ID:
00712524
Views:
53
oApp=CreateObject("Outlook.Application")
NameSpace= oApp.GetNameSpace("MAPI")
MailItem = oApp.CreateItem(0)
With MailItem
    .Subject = "Automatic Notification!"
    .body= CHR(10)+"Today "+TTOC(DATETIME( ))+ CHR(10)+CHR(13)
    .Recipients.Add ("me@domain.com")
    .Send
EndWith
NameSpace.Logoff
Well, the Email server is down now, so my application having the above code suspends at the .body assignment.

How can I check to see if the Email server is available before running this code!?
Edgar L. Bolton, B.S. B.B.A.
Next
Reply
Map
View

Click here to load this message in the networking platform