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

I don't see where you setup configuration info, like SMTP server name/address.

>
>The code bellow 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
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform