Look in the downloads section here (classes) - you'll find my MAPIMail class - even simpler than your example. If you can't find it there, it's also on my website.
>Hi,
>
>How can I provide an e-mail feature in one application? I want something simple to use, tried to use the VFP foundation classes but it is too complicated.
>
>I was thinking about something simple as :
>
>oEMail.Compose()
>oEMail.To = "
you@yourwork.com"
>oEMail.From = "
me@mywork.com"
>oEMail.Subject = "VFP is the BEST!"
>oEmail.Message = ".........."
>
>oEmail.Send()
>
>
>Anybody help, please.
>
>TIA
>
>Alonso