Chris,
I don't know about ShellExecute, but if you're using Outlook, you could use automation:
loApp = CreateObject("Outlook.Application")
loMapi = loApp.GetNameSpace("MAPI")
loMailItem = loApp.CreateItem(0)
WITH loMailItem
.Recipients.Add(tcRecipient)
.Subject = tcSubject
.Body = tcMessage
IF NOT EMPTY(tcAttachment) AND FILE(tcAttachment)
.Attachments.Add(tcAttachment)
ENDIF
.Send
ENDWITH
loMapi.Logoff
Alternatively, you could use the MAPI OCX that ships with VFP. There are classes available for download. Another solution is to use SMTP. Check the following message #
583757HTH
>Hi - I am currently using the following (Sorry if this isn't Windows API!) to launch a blank email message with no subject...
>
>DECLARE INTEGER ShellExecute IN SHELL32.DLL ;
> INTEGER nWinHandle, STRING cOperation,;
> STRING cFileName, STRING cParameters,;
> STRING cDirectory, INTEGER nShowWindow
>ShellExecute(0, "", "mailto:" + lcEmail, "", "",1)
>
>Is there a way to specify a subject and message and get the email message to go straight into the Outbox rather than appear on screen waiting to be sent?
>
>Thanks for any comments...
Daniel