Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: "Mail to" shortcut in Send To context menu fails command line argument

16 Nov 2011   #1

Win 7 Enterprise 32bit
"Mail to" shortcut in Send To context menu fails command line argument

Hi All,

Previous PC was an XP and we had a shortcut within the Send To context menu called "Mail To" which when clicked on a file would open a new email with the file attached and with the default email (as done from within Outlook), not the crappy text "mail recipient" one that is standard in the Send To context menu.

The target string in the shortcut was
"C:\Program Files\Microsoft Office\Office11\OUTLOOK.EXE" /c ipm.note

When trying to set up the same shortcut in Win 7 using the same string (but with Office14) we get an error which states. "The command line argument is invalid. Verify the switch you are using."
"C:\Program Files\Microsoft Office\Office14\OUTLOOK.EXE" /c ipm.note

If I navigate to the SendTo folder and double click the shortcut, it works. It opens up a new email as if I click New E-mail from within Outlook. But when selecting via the context menu, it fails everytime.

What can we do to fix this? We have to email a lot of files manually and opening a new email then attaching(or even drag/drop takes a lot of extra time.

Thanks for any advice.

My System SpecsSystem Spec
16 Nov 2011   #2

64-bit Windows 10 Pro

Hello StuckatWork, and welcome to Seven Forums.

Double check in Default Programs to make sure that Microsoft Outlook is set as the default email client.

Are you able to select the files you want to attach and click on the E-mail command bar button for this to work that way instead?

"Mail to" shortcut in Send To context menu fails command line argument-explorer.jpg

Hope this helps,

My System SpecsSystem Spec
16 Nov 2011   #3

Win 7 Enterprise 32bit

Hi Brink Shawn,
and thank you for your welcome.

Yes, Outlook is the default. It's the only client we use.

Yes we can use the E-mail command bar button that you have shown in your image. That is the one I termed the crappy text Mail recipient one. It doesn't look very professional by any standards.

Here's the one we have created showing it in the menu.

My System SpecsSystem Spec

17 Nov 2011   #4

64-bit Windows 10 Pro

I found this last post at the link below that should work as a workaround for you.
Outlook Public. Command-line switch to attach MULTIPLE files
You would basically just create a .vbs file with the code below, and save it somewhere (ex: C:\Windows). Create a shortcut of the .vbs file with the name and icon you want, and move that shortcut into Send to. When you change the icon of the shortcut, you would browse to the same "C:\Program Files\Microsoft Office\Office14\OUTLOOK.EXE" path for the Outlook icon.

(create VBS file with this)
On Error Resume Next
Set App = GetObject(, "Outlook.Application")
If Err <> 0 Then Set App = CreateObject("Outlook.Application")
Set AppItem = App.CreateItem(0)
If WScript.Arguments.Count > 0 then
For FileName = 0 to (WScript.Arguments.Count - 1)
AppItem.Attachments.Add WScript.Arguments(FileName)
End If
Set App = Nothing
Set AppItem = Nothing
My System SpecsSystem Spec
24 Jan 2012   #5

Win 7 Enterprise 32bit

I'm back again, as this is still bugging me a bit.

Thanks for you advice Shawn much appreciated, and it does what we are after, if a just tad clunky.

At the moment the email goes to the taskbar and we have to click it to bring it up so we can type in it. Is there a way that we can make the newly created email the active window. I know nothing of scripts and have tried googling for it but cannot find the command.

if anyone could help, that would be great.
My System SpecsSystem Spec

 "Mail to" shortcut in Send To context menu fails command line argument

Thread Tools

Similar help and support threads
Thread Forum
I need a "Send shortcut to Start Menu" function
Hi @all, I'd like to have shortcuts (not copies) of things that are selected in Windows Explorer sent to a folder in the SendTo menu. This way, I'd like to add the zillions of portable programs that I have to a new Windows installation's start menu. In other words, I'd need a "Send shortcut to...
"Desktop As Shortcut" Command Is Missing from the "Send To" Menu
Can anyone help me with this ? i got a picture ... i cant sendto desktop as shortcut the icon is missing .. help !!:cry:
Remove "Create Shortcut" from file and folder context menu?
Hi Shawn, is there a way to remove "Create Shortcut" from the right-click context menu on a file/folder?
Google Drive - Add to "Send To" Context Menu
How to Add Google Drive to "Send To" Context Menu in Windows If you use Google Drive you are probably using traditional copy & paste or file/folder dragging functionality to place items into your local Google Drive folder, which is then synchronised with your cloud storage location on a Google...
How to add a "Copy Shortcut text" context menu item
I modify and clean up the start menu entries on all my machines, and it's an irritation having to construct shortcuts to a program file that you are looking at in Explorer by- Highlight and copy the folder address from Explorer address bar Paste into the target shortcut address Manually...

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 21:24.
Twitter Facebook Google+