[thelist] CDONTS Mail Problem

Means, Eric D eric.d.means at boeing.com
Tue Apr 2 14:22:08 CST 2002


> oMail.Send strFrom, strTo, strSubject, strBody
> set oMail = nothing
> oMail.Close()
       ^^^^^^^^
You can't call a method on an object that is Nothing.  There's no object to
Close().  Either of these is better:

oMail.Send strFrom, strTo, strSubject, strBody
oMail.Close()
set oMail = nothing

Or

oMail.Send strFrom, strTo, strSubject, strBody
set oMail = nothing



More information about the thelist mailing list