I want to send emails from foxpro (using VFP 6.0, XP svc pack 2) and am
trying to use CDO.
I understand that all I need to do is configure Outlook express, then run
the following code:
oMSG = createobject("CDO.Message")
oMsg.to = 'f7test@hotmail.com'
oMsg.From = 'Bill@MarathonSoftware.com'
oMSG.Subject = "Testing CDO email"
oMsg.TextBody = "hello world"
omsg.Send()
I get the error:
OLE IDispatch exception code 0 from ?;
The message could not be sent to the SMTP server.
The transport error code was 0x80040217.
The server response was not available.
The code's simple, so my tendancy is to look at my SMTP configuration. But
that seems fine, and I can send emails using outlook express. I've tried
turning off firewalls, I've tried using a Win2000 computer, I've added
statements to query the configuration. I'm not finding the cause to the
problem. (My info on CDO comes from the book "Megafox: 1002 things...." and
the foxpro Wikki.)
I'm running this from a .prg.
Any ideas, anyone?
Thanks,
Bill Freeburg