Nigel Coate's Class to send e-mail via MSMAPI is a very eficient and simple piece of code.
You can take a look at the files section or at his site
www.nbcsoftware.com>I am attempting to send e-mail from within VFP6.0.
>
>I am able to accomplish this by establishing the recipient interactively ie send(1). What I would like to do is set the recipient list programmatically and send(0).
>
>I've tried changing the property RecipAddress of the MAPIMessages control but receive the error 'OLE Dispatch Exception Code 0 from MAPIMessages - Unspecified Failure has occured'
>
>Can anyone suggest a solution?
>
>Thanks in advance