ken355
asked on
mailto URL scheme not attaching attachment file
with the following segment of code i am able to open local email, populate the To: and Subject fields but it does not attach the attachment file. The attachment file does exists, any ideas as to why it is not working?
wsprintf(pcURL, "mailto://toaddress@url.co m?subject= THIS IS THE SUBJECT&attachment=c:\\Att achment.pn g");
if( (int) ShellExecute(NULL, "open", pcURL, NULL, NULL, SW_SHOWNORMAL) <= 32 )
MessageBox(hMainWin, "Unable to open local mail client.", "Mail client error", MB_OK | MB_ICONWARNING);
wsprintf(pcURL, "mailto://toaddress@url.co
if( (int) ShellExecute(NULL, "open", pcURL, NULL, NULL, SW_SHOWNORMAL) <= 32 )
MessageBox(hMainWin, "Unable to open local mail client.", "Mail client error", MB_OK | MB_ICONWARNING);
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yes Microsoft did publish a kb on it, for security purposes you can no longer do it
Thanks
Thanks
try using forward slash c:/ or c://