Check this page:
http://www.aksel.com/whitepapers/OutlookAutomation.htmThere are some security issues (search Redemption)
Basically, it looks something like this:
oOL=CREATEOBJECT('Outlook.Application')
oNS=oOL.GetNamespace("MAPI")
oNS.Logon
oMailItem=0
oMI=oOL.CreateItem(oMailItem)
WITH oMI
.To="someone@somewhere.com"
.Subject="MailItem Subject "+TTOC(DATETIME(),1)
.Body="MailItem Body"
ENDWITH
oMI.Send
If you are working with "Exchange" you will have other issues to address.
You might also google for SendMail.PRG (it implements Winsock for SMTP )
Also search foxpro CDO automation (it's an easy way_
But it seems that you could use "mailto" to work your user's issues.
>One more thing. I do not want to use the Shell Execute command to pop up the email form. The body of the email could be pretty big and break the shell execute command.
>
>Thanks again!
>
>
>>Greetings,
>>
>>I'm trying to add some email automation capabilities to a VFP 7 application.
>>
>>Does anyone have fast access to VFP/Outlook automation code that will.
>>
>>- Create a new email
>>- Fill the email with an HTML body and send to address from local VFP variables
>>- Open the email editor up and bring it to the front of the users screen.
>>
>>Note: I do not want to automatically send the email. I only want to BUILD the email and present it to the user for review or for them to add their own comments to the confirmation.
>>
>>Thanks in advance!!
Imagination is more important than knowledge