Kenji Horvath
2004-04-23 15:16:26 UTC
What i'm trying to do is programmatically bring up a new message for the
default mail client with an attachement already attached. I've successfully
been able to bring up a new message with an e-mail address, subject, and
body, but i can't attach a file no matter what i try. Some things seem to
have no effect, and others seem to cause outlook to bring up a messagebox
(Command line arguement is not valid). Here's some mailto: commands i've
tried using in shell execute
mailto:***@vt.edu?subject=my report&body=see
attachment&attachment="\\Gamingmachine\download temp\invoice.html"
mailto:***@vt.edu?subject=test&attachment=\\Workpc1\c$\DownloadTemp\redist.txt
mailto:***@vt.edu?subject=test&attachment="\\Workpc1\c$\DownloadTemp\redist.txt\"
mailto:***@vt.edu?subject=test?&attachment=\\Workpc1\c$\DownloadTemp\redist.txt
mailto:***@vt.edu?subject=test?&attachment="\\Workpc1\c$\DownloadTemp\redist.txt\"
mailto:***@vt.edu?subject=test?attachment=\\Workpc1\c$\DownloadTemp\redist.txt
mailto:***@vt.edu?subject=test?attachment="\\Workpc1\c$\DownloadTemp\redist.txt\"
mailto:***@vt.edu?subject=test&attachment="\\Workpc1\DownloadTemp\redist.txt\"
mailto:***@vt.edu?subject=test&attachment="c:\DownloadTemp\redist.txt"
Of course the format in my cpp file is
ShellExecute(NULL,"open","mailto:***@vt.edu?&attachment=\"c:\\redist.tx
t\"","","", SW_SHOW );
I've tried more but you get the idea that i've tweaked almost every aspect
of this but can never get an e-mail with the attachment to come up. I read
one article that said allowing attachments through mailto: is a security
risk so it doesn't work. Is this true?
I appreciate any information anyone can provide. Thank you very much in
advance.
Kenji Horvath
default mail client with an attachement already attached. I've successfully
been able to bring up a new message with an e-mail address, subject, and
body, but i can't attach a file no matter what i try. Some things seem to
have no effect, and others seem to cause outlook to bring up a messagebox
(Command line arguement is not valid). Here's some mailto: commands i've
tried using in shell execute
mailto:***@vt.edu?subject=my report&body=see
attachment&attachment="\\Gamingmachine\download temp\invoice.html"
mailto:***@vt.edu?subject=test&attachment=\\Workpc1\c$\DownloadTemp\redist.txt
mailto:***@vt.edu?subject=test&attachment="\\Workpc1\c$\DownloadTemp\redist.txt\"
mailto:***@vt.edu?subject=test?&attachment=\\Workpc1\c$\DownloadTemp\redist.txt
mailto:***@vt.edu?subject=test?&attachment="\\Workpc1\c$\DownloadTemp\redist.txt\"
mailto:***@vt.edu?subject=test?attachment=\\Workpc1\c$\DownloadTemp\redist.txt
mailto:***@vt.edu?subject=test?attachment="\\Workpc1\c$\DownloadTemp\redist.txt\"
mailto:***@vt.edu?subject=test&attachment="\\Workpc1\DownloadTemp\redist.txt\"
mailto:***@vt.edu?subject=test&attachment="c:\DownloadTemp\redist.txt"
Of course the format in my cpp file is
ShellExecute(NULL,"open","mailto:***@vt.edu?&attachment=\"c:\\redist.tx
t\"","","", SW_SHOW );
I've tried more but you get the idea that i've tweaked almost every aspect
of this but can never get an e-mail with the attachment to come up. I read
one article that said allowing attachments through mailto: is a security
risk so it doesn't work. Is this true?
I appreciate any information anyone can provide. Thank you very much in
advance.
Kenji Horvath