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