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
stuckatwork

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
Brink

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?

-explorer.jpg

Hope this helps,
Shawn


My System SpecsSystem Spec
16 Nov 2011   #3
stuckatwork

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
Brink

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)
Code:
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)
Next
 
AppItem.Display
End If
 
Set App = Nothing
Set AppItem = Nothing
My System SpecsSystem Spec
24 Jan 2012   #5
stuckatwork

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
Reply

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




Thread Tools




Similar help and support threads
Thread Forum
Remove "Restore previous versions" and "Share with" from context menu
Hello! ... How about removing these two: "Restore previous versions" and "Share with"
Customization
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?
Customization
Run "cmd.exe" as a given user and "as administrator" in command line
Hello and thank you for reading my post. If I'm logged in Windows as user "u1", I can execute "cmd.exe" "as administrator" by choosing "Start" -> "cmd.exe" and right-click "Run as administrator".I would like to start another "cmd.exe" console as "u2" and "as administrator". (So, "u2" is not...
General Discussion
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...
Tutorials
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...
Customization
" Send page by e-mail " and the " Send link by e-mail " are grayed out
IE9 is set as default. ( I also have Firefox, but rarely used and not set as default.) Windows Live Mail is set as default. Start > Default Programs > Associate a file type or protocol with a pogram > MailTo ... Current Default is Windows Live Mail In IE9, the " Send page by e-mail " and the...
Browsers & Mail


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 15:47.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App