Pass filename to Outlook as attachment and subject

"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.

One more question, is it possible to use specific account as the sender?

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.

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}

When attachment's file name contains a space, the error message shows up. How to solve this issue? Thanks.

Try

@nofilenamequoting 
"{apppath|outlook.exe}outlook.exe" /c IPM.Note /a "{filepath}" /m "xxx@xxx.com?subject={file}"

Thank you for the help. It works.