What errors do you get. 1733 indicates that an OCX is not registered so registering it will solve the problem.
>Nigel,
> I did what you suggested, I still get the errors. Here is a copy of what I tried.
>
>
> lok=oMail.SendMail(cUsername,cPassword,cTo,cSubject,cBodyText,cAttachments,lReciept,lShowClient)
>
> If lok=0
> * 0 = Message sent successfully
> cMessg="Message was sent successfully!!!"
> wait cMessg window at 8,20
> endif
> If lok=-1
> *-1 = Could not create link to MAPI Client
> cMessg="No Link to the MAPI Client !!"
> wait cMessg window at 8,20
> endif
> if lok>0
> *Positive Value = Number of errors encountered
> cMessg = "Message was not sent, there were "+alltrim(str(lOk))+ " errors !!!"
> wait cMessg window at 8,20
> endif
>return
>
>thanks for you help
>
>Scott