>I got a old version program which runs fine on Window 98 . However, as i change the OS into Window ME. it can't use the MSMAPI object.
>Please Help. I read the posted message and try "mampmail" from nbcsoftware. But I still got the same problem .
>
Agnes, the problem you're encountering is not with the OS per se, but with the mail client installed on the machine. A MAPI-compliant email application must be installed and configured on the system in order to be able to use MAPI to send or receive mail; for example, OE is a MAPI-compliant client, but if you haven't set it up AFA its connection and POP3/SMTP servers, it isn't able to do anything to service your MAPI request. Please check what, if any, mail client is both installed and configured on the target system; if you find that there isn't one, or that the one that is installed doesn't support MAPI (such as Lotus Notes) you'll need to install and configure a client to use MAPI.
>The following is my code:-
> oform = CreateObject("form")
> oform.addobject("Session1","olecontrol","MSMAPI.mapiSession")
> oform.addobject("Message1","olecontrol","MSMAPI.mapiMessages")
> oform.Session1.signon
> oform.Message1.sessionid = oform.Session1.sessionid
> oform.Message1.compose
> oform.Message1.msgsubject = pSubject
> oform.Message1.msgnotetext = pMsg
> oform.Message1.RecipDisplayName = pTo
> oform.Message1.send(0)
> oform.Session1.signoff
> release oform
>
>Pls Help