Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Another CDO problem
Message
 
 
À
29/11/2004 08:30:43
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
00965391
Message ID:
00965394
Vues:
16
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform