Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CDO Stopped Working
Message
De
24/06/2005 09:46:47
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
CDO Stopped Working
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01026265
Message ID:
01026265
Vues:
86
This worked for quite sometime, and now it has stopped working and I do not know why. No error message appears and the object oMSG is valid. The code runs each line as it should but the messages appear to be lost in la la land. I am concerned because I have no idea what made it stop successfully sending messages.

I know that it requires winsock2 but that should not be a problem on Windows 2000 or Windows XP systems.

In my testing, I have Windows XP Pro SP2. It quit working in VFP8 and VFP9 on my system during testing.
*--Each line runs as it should - no error messages but messages are never received
oMSG = CREATEOBJECT("CDO.Message")
IF TYPE('oMSG') = "O" .AND. !ISNULL(oMSG)
   oMSG.TO = "myemail.hotmail.com" && tested with valid email addresses
   oMSG.FROM = "me@mywork.com"
   oMSG.TextBody = "Error Report"
   oMSG.Subject = "Error Report Test"
*   oMSG.AddAttachment("\errors.txt")
   oMSG.SEND()
ENDIF
oMSG = NULL
RELEASE oMSG
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform