Hello,

I am using the following code to send an email thru Outlook 2003:

Code:
Dim omsg As Object
        Dim oRcp As Object

        Dim objCDO As MAPI.Session
        objCDO = CreateObject("MAPI.Session")
        objCDO.Logon("", "", False, False)

        omsg = objCDO.Outbox.Messages.Add
        omsg.Subject = subject
        omsg.Text = body

        oRcp = omsg.Recipients.Add
        oRcp.Type = 1
        oRcp.Name = sto
        oRcp.Resolve()
        oRcp = omsg.Recipients.Add
        oRcp.Type = 3
        oRcp.Name = esender
        oRcp.Resolve()
        omsg.Send(False)

        objCDO.Logoff()

        omsg = Nothing
        oRcp = Nothing
I am getting the error "Can't Create ActiveX Component" on some PCs.

please advise.

Thanks

Hiba