Try MSMAPI.MAPISession.1 (and same for messages).
>I have an application object set up with a method "setupmail".
>
>In "setupmail" I have the following code...
>
>public oSession
>public oMessage
>this.addobject("oSession","olecontrol","MSMAPI.mapisession")
>this.addobject("oMessage","olecontrol","MSMAPI.mapiMessages")
>
>When I run the prg that calls setupmail I get an error mesage saying "object name is invalid".
>Any tips?