vane
1
"C:\Program Files\Microsoft Office\Office14\OUTLOOK.EXE" /c IPM.Note /a "%1" /m xxx@xxx.com&subject={file}
I want to use the attachment filename as the subject of email, but the code above doesn't work. What parameter should I use to pass the filename?
The second question is how to change the code to add all selected files as attachments in one email?
Thanks.
vane
2
One more question, is it possible to use specific account as the sender?
lxp
3
What parameter should I use to pass the filename?
{file}
is perfectly fine. You need to change the &
into a ?
.
For the other requests you'll probably need to use a script.
vane
5
Error message "The command line argument is not valid. Verify the switch you are using" shows up.
None of these codes below works.
"C:\Program Files\Microsoft Office\Office14\OUTLOOK.EXE" /c IPM.Note /a "%1" /m xxx@xxx.com&subject={file}
"C:\Program Files\Microsoft Office\Office14\OUTLOOK.EXE" /c IPM.Note /a "%1" /m xxx@xxx.com?subject={file}
vane
6
When attachment's file name contains a space, the error message shows up. How to solve this issue? Thanks.
lxp
7
Try
@nofilenamequoting
"{apppath|outlook.exe}outlook.exe" /c IPM.Note /a "{filepath}" /m "xxx@xxx.com?subject={file}"
vane
8
Thank you for the help. It works.