38

I just installed 12.04 and when clicking mailto: links Thunderbird opens.

I want Gmail to open in the browser, in which mailto: was clicked.

  • So if I am in Firefox and click a mailto: link a new FF tab should with Gmail should open.
  • And if I am in Chrome, a new Chrome tab should open accordingly.

Is there a way to do this via some script? Or would I need to set this in some system settings?

Frank N
  • 1,430
max
  • 1,409

4 Answers4

51

You can make Chrome open when you click a mailto: link:

Access Gmail, and click an icon of the shape of overlapped double diamonds, next to the star icon in the omni-box where the URL is displayed.

https://i.sstatic.net/Vt7wJ.png

If you don't see it, try reloading the page.

Source, by mulogics on Web Applications Stack Exchange

If you somehow missed the opportunity and said 'no' after the diamond question, your chance to undo that is under chrome://settings/handlers, where gmail will be listed as handler-question-blocked.

wjandrea
  • 14,504
30

There is an option for that in firefox.

  • Edit -> Preferences -> Applications -> mailto

or

  • Firefox menu -> Options -> Options -> Applications -> mailto

Firefox Options Page

wjandrea
  • 14,504
15

gnome-gmail lets you do exactly that.

This is what reads from the Description section in the control file of gnome-gmail package.

support for Gmail as the preferred email application in GNOME

To install gnome-gmail, run this command:

sudo apt-get install gnome-gmail

After installing, open gnome-gmail and adjust your settings.

However, if and when you click on the mailto: links, it will open a Gmail tab in the preferred browser instead of whichever browser you are currently in.

jokerdino
  • 41,732
4

As of Ubuntu 14.04, these instructions did the job under Chrome:

  1. Open your Gmail account
  2. Open the Javascript console. (ctrl-shift-J)
  3. In the Javascript console, enter:

    navigator.registerProtocolHandler(
        "mailto",
        "https://mail.google.com/mail/?extsrc=mailto&url=%s",
        "Gmail");
    
  4. Press Enter, and you should get the confirmation popup to approve.

This needs to be repeated for each browser profile you have.

wjandrea
  • 14,504
Frank N
  • 1,430