Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cdo.message
Message
From
14/01/2009 02:17:28
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Cdo.message
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01373442
Message ID:
01373442
Views:
75
I have simple piece of code which does not work

oMsg = createobject("CDO.Message")

oMsg.To = "aa@bb.com"
oMsg.Subject = "aaaaa"
oMsg.AddAttachment("c:\autoexec.bat")
oMsg.Send

Return error code is

OLE IDispatch exception code from ?:The message could not be sent to SMTP server.
The transport error code was 0x80040217. The server response was not available.

Any sugestion?

Incoming mail server is IMAP.

Thanks in advance.
Next
Reply
Map
View

Click here to load this message in the networking platform