hakre's opera jowjow

(opera) experiences, options, tweaks and tools

Creating a Send To Menu Entry for Opera M2 Email Client

, , , ,

Hint October 2007: You might be intereseted in mapi4opera as well.

The Problem
Ever wondered why you can not use windows-explorer's "Send To" Menu to attach one or multiple files to a new Email message within Opera's great Mailclient M2? Well, I did so and finally yesterday night I throw all the infos and ideas together and wrote a small computer program to extend Opera with this feature. If you missed that feature as well, you can just download and install it now.

Download
Note: my.opera.com has removed the .exe file - I don't know why. You can grab the AHK source code instead and compile it with the AHK compiler.

M2sendto.Setup.exe
204 KB, v 0.4.1, Windows Executable
MD5: b73bb3cc02977ccf297192350d529dfd

M2sendto.ahk
28 KB, v 0.4.1, AHK Source
MD5: 7de771f7570cbe68e71431586966fe08

Setup
Setup is really easy since version 0.2. Just download, execute and follow instructions (basically it's pressing the Install button). Afterwards the only thing left to do is to ensure that opera gets the new CTRL + A hotkey within the compose message window.
If you want to use the AHK file, take a look in the development forums. Right now it is not well supported but this is the aim of the next update.

Setup: Hotkey
You can add it in Operas Preferences. It's the Keyboard section under the Advanced Tab:



Simply add a new shortcut. Afterwards it should look like this:



Now everything is setup and you can enjoy your missed Send To Menu command right away again.

Questions, Comments and Ideas
Are always welcome, feel free to use the Comments here or send me a Message. All this will help improving M2sendto. There is a Forum dedicated to the tool and you can checkout the Frequently Asked Questions (FAQ).

How does it work?
Indeed it's quite easily solved: M2sendto.exe, the small helper tool within this project, listens to your commands in the send to menu. In the event you want to have files attached and you use the send to menu it will take care that opera attaches these files by doing the following:

  1. If Opera is not started it will be started
  2. A new compose message window is opened (shortcut CTRL + E)
  3. Each file will be attached (shortcut CTRL + A)

As you can see, you can add attachments to emails with the send to menu again as with other mailclients like thunderbird, eudora or others.

Additionals

Changelog & Roadmap
Can be found here

Upgrading from 0.3 to 0.3.x and from 0.3.x to 0.3.x
Simply run setup and "say ok" to uninstall first.

Upgrading from 0.2 to 0.3
Simply run 0.3 setup and uninstall previous version at the beginning (first question). That's it.

Upgrading from 0.1 to 0.2
Just delete everything you created since yesterday (well, you can leave AutoHotkey on your computer, but you can delete the script and the one .lnk file within the send to folder) and then install the new version.

Version 0.4 Download
M2sendto.Setup.exe
204 KB, v 0.4, Windows Executable
MD5: 5544b76acc0357bf7600d7447d054d34


Version 0.3.6 Download
M2sendto.Setup.exe
202 KB, v 0.3.6, Windows Executable
MD5: a51d4278c0f1bfb18607833e76c515bf

Version 0.3.5 Download
M2sendto.Setup.exe
201 KB, v 0.3.5, Windows Executable
MD5: b4014c1ea5c864bd4b805666a88e8919

Version 0.3 Download
M2sendto.Setup.exe
201 KB, v 0.3, Windows Executable
MD5: 7be1b1b9956da4061386c7c828e8d549

Version 0.2 Download
M2sendto.v0.2.Setup.exe
200 KB, Windows Executable
MD5: 8558ad24920a5253da647bb6f7ee71d0

Version 0.1 Download
This version is just available for historical reasons. Do not download if you don't know what to do with it.
opera.attach.v0.1.ahk

M2sendto Changelog & Roadmap

Comments

Marc FoumbergMarcFou Tuesday, June 27, 2006 11:04:21 PM

Huge thanks for putting the time into this. I'm going to set this up later since it is the only known work around for Opera's lack of MAPI support. Nice work!

Dv108 Saturday, July 1, 2006 7:56:08 AM

the instal didn't work on my machine, winxp: aborting opera.exe could not be found. any idea?

Marc FoumbergMarcFou Saturday, July 1, 2006 8:01:50 AM

Maybe missing a registry entry? "HKCU\Opera Software\" I'm pretty sure thats the only reg item that contains the path. The above I mentioned was created when I used the windows classic installer on my last Opera install.

Joel Nothmanmoo Saturday, July 1, 2006 8:55:08 AM

But I use Ctrl-A in the Compose window for Select All: can't I choose my own shortcut?

szyk Saturday, July 1, 2006 10:43:24 AM

In Windows ME, when I press Install, it displays error: "Send To" Directory does not exist: [\SendTo], but I have C:\Windows\sendto directory. What's wrong?

Edit: OK, I used File Monitor - I created C:\Sendto directory and I can install M2sendto now.

hakre Saturday, July 1, 2006 1:23:01 PM

Szyk, thanks for reporting. This is because I had not tested this yet on Windows 9x/ME. I'll fix this in the next release.

Details: M2sendto looks for your profiles environment variable (%USERPROFILE%) to locate the SendTo folder. Win9x/ME do not have this value. Because M2sendto does not validate this carefully enough, it will return internally "\Sendto" as SendTo Directory (as displayed within the square brackets in your errormessage) and until c:\SendTo (or X:\SendTo if you execute it on drive X) does not exists the Installation Error is thrown. This is a Bug.

szyk Saturday, July 1, 2006 9:12:31 PM

But when I select file and choose "Send to->E-Mail Recipient (via Opera M2)", then new compose message opens, but file isn't added automatically to attachment... :/

EDIT: it works only when I set english language in Opera. bigsmile

gun Saturday, July 1, 2006 9:55:19 PM

@szyk: Confirmed.

@hakre: Could this be fixed also? Why is it depending on laguage at all? Could you describe in detail what your programm is doing (or make it open source bigsmile)?

Would be great if it doesn't need an additional entry in send to. It would be better to register the programm as a normal MAPI mail-client itself which then acts as a wrapper. Would this be possible?

Joel Nothmanmoo Saturday, July 1, 2006 11:00:37 PM

What it's doing is activating Opera and passing a couple of key-press commands. If the current system language is not set to English, Ctrl-A might be read as Ctrl-ש or something. So the system should at least make sure it is using a capital A as that will get through more keyboard setups.

hakre Sunday, July 2, 2006 2:07:31 AM

@szyk: if the file isn't attached please check you configured CTRL+A as hotkey for "Add attachment" in Opera.

@moo: Both Hotkeys CTRL+A and CTRL+E are hardencoded right now, but this will change in v0.4.

@all: Do hotkeys differ per language?

@gun: A true MAPI extension on top of M2sendto has been planned and already tested. Get more infos in the "M2 goes MAPI" article.

szyk Sunday, July 2, 2006 8:47:58 AM

Originally posted by hakre:

@szyk: if the file isn't attached please check you configured CTRL+A as hotkey for "Add attachment" in Opera.


It is attached for english language. smile

Originally posted by hakre:

@all: Do hotkeys differ per language?


No. When you change language in browser to non-english, then M2sendto works?


When M2sendto can't add attachment, it remains in processes. :|

legman Sunday, July 2, 2006 10:43:57 AM

I followed your instructions for insallation and creating the shortcut but it dont work!
If I choose a file through the context menu Opera M2 open a window but without the attachment.
What is wrong?

andreas

hakre Sunday, July 2, 2006 11:48:35 AM

andreas / legman, it looks like the add attachment hotkey problem. what language are you using? have you created the hotkey within opera? anyway, I build in some more checks within the next version which might reveal more infos about these "no attachment" issues.

For upcomming Bugreports and Issues, I thought it's far better to have Issues discussed in a forum rather then in Comments. Feel free to use
http://my.opera.com/m2/forums/tgr.dml?id=1563 right away if the place here seems to be unfitting.

legman Sunday, July 2, 2006 10:05:57 PM

Im german and I have a german version of opera 9. Yes I created the hotkey in opera.
Ok I will use the forum next time. So my problem is already known (add attachment hotkey problem)?

Tomasz Cieńciałacenebris Saturday, July 8, 2006 3:52:21 PM

Well, did you try to contact Opera to include this to their next release? smile

hakre Saturday, July 8, 2006 4:33:38 PM

No, but I added this question to the FAQ wink

yarrecco Wednesday, August 2, 2006 2:14:35 AM

Would it be possible to make it for KDE Environment in Linux? smilesmile
I know, we are minority but as long as people will make and develop small programs supporting Windows as long Bill G will be happy :-)

hakre Wednesday, August 30, 2006 11:23:51 PM

Well, I have no KDE here right now, I'm just trying to get Ubuntu running on a Pentium S 166 Mhz right now, so, who knows wink I need to get in touch again with the windows project anyway, so hopefully there is an update soon. I'll release this stuff as free software soon.

Stanley Olivertatepa Tuesday, September 5, 2006 2:23:31 PM

Just installed v0.4 and it works. The only thing is that I get a dialogue box up which I have to click through before the ctrl+A action happens (before the file gets attached).

This is the box...

http://files.myopera.com/tatepa/files/error.GIF

hakre Thursday, September 7, 2006 8:32:08 AM

Tatepa, this is a bug. I encountered it here as well, it's a bit anoying. I need to remove this from code, it was in there for debugging purposes.

Colin McKinneycolmack Saturday, September 9, 2006 9:33:28 PM

First, thanks for the great work. Now Outlook doesn't open when I want my attachments to be to an M2 email smile. Some problems, however:

If I try to add file attachments, Opera won't open if it's not already - I got the impression that it should

I always get a message tatepa describes above. If I click OK, the file(s) are added as attachments correctly, but only sometimes

Otherwise I've found that Ctrl+A will add the files

Stian Martinsenvorty Monday, September 25, 2006 12:18:50 PM

I get the same problem as colmack and tatepa - except it says nb.lng instead of english.lng, which is reasonable, since I use the Norwegian language.

Thanks for the trick, though!

Anonymous Wednesday, October 18, 2006 4:04:55 AM

Laughing Coyote writes: I installed it to work with the "reply to" in Poptray. It works fine if Opera is closed, but if Opera is open it merely switches you back to Opera. Is this how it is supposed to work or am I not doing something right?

Shoham Friday, November 3, 2006 8:56:01 AM

Thanks for the excellent idea.
My problem is, and it may be a problem with Opera and not with M2SendTo is that it will only work if Opera is already open in a mail window. If no tabs are open or a browser tab is active, even if a mail window is open in the background, a compose window will not open. This may have to do with the fact that I cannot compose mail except from the compose button inside the mail viewer window (`unread`). All other compose buttons are not working for me. which is mighty strange. I couldn't find the reason for this. Does anyone have an idea why this could be?

Anonymous Sunday, January 21, 2007 7:58:25 PM

Renča writes: M2SendTo is great! Thank you! Only we must change our cs.lng file to english.lng. Does M2SendTo work with Word(2002? Is there any possibility to add documents directly from it? Thanks

Stanley Olivertatepa Thursday, February 8, 2007 1:46:20 PM

Just installed the latest version and the dialogue box problem seems to have been fixed.

Great work hakre!

hakre Wednesday, February 14, 2007 10:45:50 AM

np tatepa, that's the bugfix made wink

Zalex ;-) Zalex108 Friday, March 2, 2007 4:18:36 PM

Thank u very much!!
Realyy usefull!! bigsmile

Anonymous Monday, June 11, 2007 9:31:38 AM

Anonymous writes: It works fine with my language if i add this line to my opera6.ini in profile-folder: Language File=F:\Programme\Opera\7\locale\de\de.lng

Anonymous Monday, October 8, 2007 7:24:12 PM

Anonymous writes: There is another MAPI extension for Opera: http://www.joonis.de/mapi4opera

anobis911 Tuesday, October 23, 2007 12:10:48 PM

Hi,
I can't download M2sendto.Setup.exe.
I'm getting the message "You don't have permission to access /hakre/blog/M2sendto.v0.4.1.Setup.exe on this server".

Please help me.

Bye.

ersi Wednesday, April 29, 2009 5:18:06 PM

I'm years late seeing this

mrLobster Monday, October 26, 2009 2:10:08 PM

Originally posted by ersi:

I'm years late seeing this



I feel you, man.... ;-) One of the million things one just hasn't gotten around to yet...year after year...

Hmmm...perhaps I should try it, and see if it works with Opera 10 and Win7 before commenting, but what the hell...

Anonymous Saturday, November 7, 2009 5:47:19 PM

MPX writes: Can't download from Opera 10

mrLobster Monday, November 16, 2009 2:06:21 PM

Nah, but it's on my to-do list of things to fix....don't hold your breath now!

dapxin Wednesday, January 20, 2010 12:59:28 PM

does itwork in 10.10 ? :_

Anonymous Wednesday, December 1, 2010 1:06:59 PM

mustapha writes: my name is mustapha from algeria i want to help me please i d'ont speak english very well but ..... i have honor to send you... i have knowledge of english i'm computer sientist and ansurance really i want to help. me onsly i want to go to america for working my mother is dead my father c'ant help me i have no money no cars i have nothing in my life just i want to go and to folow my dream so please p p p help me this is my imail mustapha_bbz@live.fr my num +213553894529

Anonymous Friday, December 10, 2010 6:30:54 AM

Анонімний writes: Some time before, I did need to buy a house for my firm but I did not have enough money and couldn't purchase something. Thank God my sister adviced to take the loan at trustworthy bank. Thus, I acted so and used to be happy with my short term loan.

Anonymous Thursday, July 28, 2011 10:00:00 AM

cheap oakley sunglasses writes: First of all, to review an bona fide Oakley wares, you want to outlook at the brand label review logo. The Oakley logo is agreed to by couple golden Gs staring at each and every other. All hugo person in find fault Oakley Holbrook Sunglasses (the arms for the frames) merged with sunglass circumstances could possibly be have this logo

Anonymous Friday, August 19, 2011 6:32:56 AM

Анонімний writes: That's known that money can make us independent. But how to act if somebody does not have money? The one way is to try to get the credit loans or credit loan.

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies

February 2012
S M T W T F S
January 2012March 2012
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29