Is there a way to automatically include an attachment(s) with this email? I've got a VFP6 app that creates an Excel spreadsheet, which we then email to our customers. I can use the code below to start up the email to the customer, but would like to add something that attaches the file(s) that was just created.
Thanks!
>Use this Procedure given below & Pass the parameter
>your comments are welcome (
sabari@writme.com)
>
>Example :
>
>OpenEmailClient('sabari@writeme.com','','My First E-Mail','Just a Test')
>
>
>PROCEDURE OpenEmailClient
>LPARAMETERS lcEmailAddress, lcCCAddress, lcSubject, lcMessageBody
>DECLARE INTEGER ShellExecute ;
> IN SHELL32.DLL ;
> INTEGER nWinHandle,;
> STRING cOperation,;
> STRING cFileName,;
> STRING cParameters,;
> STRING cDirectory,;
> INTEGER nShowWindow
>
>ShellExecute(0, "", "mailto:" + lcEmailAddress + "?Subject=" + lcSubject + ;
> "&CC=" + lcCCAddress + "&body=" + lcMessageBody, "", "", 1)
>
>RELEASE DLLS ShellExecute
>RETURN