Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
EMAIL Server is Down
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
EMAIL Server is Down
Divers
Thread ID:
00712524
Message ID:
00712524
Vues:
54
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform