Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CDO Stopped Working
Message
From
24/06/2005 09:46:47
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
CDO Stopped Working
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01026265
Message ID:
01026265
Views:
84
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"
Next
Reply
Map
View

Click here to load this message in the networking platform