Lawrence,
It sounds like the oApp is somewhere else in your application and totally unrelated to the code below. Maybe somewhere related to the lines that call this routine there is something wrong?
Where is oApp defined? Are you programming with a commercial framework that uses oApp and perhaps you are running outside of the normal environment when you get the oApp error, because oApp does not exist in your testing mode?
>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