Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Another CDO problem
Message
From
29/11/2004 08:30:43
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Another CDO problem
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00965391
Message ID:
00965391
Views:
53
Hi all,

The code below is getting this message at .SEND statment:

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..

What should I do to deal with this ?
loMsg = CREATEOBJECT( 'CDO.Message' )
With loMsg
    .FROM        = "John Jones, Jr. <psystems@terra.com.br>"
    .TO          = 'neumacastro@terra.com.br'
    .CC          = 'neumacastro@terra.com.br'
    .Subject     = 'Testes com o VFP 6.0!'
    .keywords    = "nissi"
    .Sender      = "psystems@terra.com.br"
    .DSNoptions  = 1
    cFile  = "C:\Nissi\WebService\produtos.htm"
    If  FILE( cFile )
        .CreateMHTMLBody( 'file:'+ cFile ) 
    Endif
    .HTMLBody    = '<br>message title<br>';
                 + 'message title line 2<br>' +  .HTMLBody

    lnretval = .SEND()
Endwith
TIA

Claudio
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Next
Reply
Map
View

Click here to load this message in the networking platform