Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Another CDO problem
Message
De
29/11/2004 08:44:46
 
 
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:
00965396
Vues:
11
Heya Sergey,
>
>I don't see where you setup configuration info, like SMTP server name/address.
>
I'm a begginer for CDO.. What do you meant by setup configuration info ? May I have to setup some stuff before ?

Thanks

>>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..
>>
>>
>>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
>>
"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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform