I can use the following to send an email form VFP.
How can I make Outlook visible and edit email
before I send it
cAddress = "
someone@somewhere.com"
cSubject = "This is the subject of the email"
cBody = "This is the body of the email"
cAttachment = "c:\myfolder\myfile.txt"
oOutlook = CREATEOBJECT("Outlook.Application")
oMailItem = oOutlook.CreateItem(0)
WITH oMailItem
.To = cAddress
.Body = cBody
.Subject = cSubject
.Attachments.Add(cAttachment)
.Send()
ENDWITH