>How can I send a simple email from VFP????You can use the Nigel Coates' MAPI class that Sergei pointed out or the MAPI ActiveX controls you have with VFP:
MAPI Messages
MAPI Session
You can also use Outlook Express (here's a sample in the Wiki):
http://fox.wikis.com/wc.dll?Wiki~MapiOutlookExpress~VFPOr you can use plain SMTP, with Rick Strahl's wwIPStuff class (
http://www.west-wind.com) as in the following example:
Set Procedure to wwUtils
Set Classlib to wwIPStuff.Vcx
local loSMTP
loSMTP = CreateObject("wwIPStuff")
loSMTP.cMailServer = "mailhost"
loSMTP.cSenderEmail = "moe@3stooges.com"
loSMTP.cSenderName = "Moe Howard"
loSMTP.cRecipient = "larry@3stooges.com"
loSMTP.cSubject = "Subject goes here"
loSMTP.cMessage = "Message goes here"
loSMTP.SendMailAsync()
HTH