Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using CDO with VFP
Message
From
02/03/2004 09:44:12
 
 
To
02/03/2004 09:19:09
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00882316
Message ID:
00882326
Views:
16
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform