Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using CDO with VFP
Message
De
02/03/2004 09:44:12
 
 
À
02/03/2004 09:19:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00882316
Message ID:
00882326
Vues:
17
Lawrence,

I tested your code as shown below and it will not run or send the email as it is because you don't have a value for
oMail.From
This generates an OLE IDispatch Exception, which is then probably getting handled by your error-handler, which can't at that moment find oApp.

>I have the following code in my application:
>
>oMail = createobject("CDO.Message")
>oMail.To = "lhaslem@hotmail.com"
>oMail.Subject = "Test"
>oMail.TextBody = "This is a test message"
>oMail.Send()
>Release oMail
>
>When I run this is my application, the e-mail is sent but I get an oApp not found error message when it finishes. Any ideas?
>
>Lawrence
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform