I'm putting a new feature into my software that allows the user to 
automatically email a document produced from my system.  Problem 
is---the attachment isn't getting attached to the email!

Here's the code:
*Example format taken from google web find:
*mailto:[EMAIL PROTECTED] report&body=see 
attachment&attachment="/my_location_virtual_path/myfile.lis"

LOCAL loShell
loShell = NEWOBJECT("_ShellExecute", HOME()+"ffc\_environ.vcx")
SCAN FOR lSelected AND NOT EMPTY(cEmail)
        lcCmd = [mailto:] + ALLTRIM(curCustomers.cEmail) + [?subject=Proposal 
from ] + ALLTRIM(oUtils.cCompanyName) ;
                + [&body=Proposal attached&attachment="] + 
FULLPATH(toRpt.cOutputFile) 
+ ".PDF" + ["]
        loShell.ShellExecute(lcCmd)
ENDSCAN
RELEASE loShell


What happens currently:  the email gets created, with the proper To: 
Subject, and Body....but the attachment doesn't come along for the ride.

Tips/ideas?

Tia!
--Michael


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to