Make GMail the default MAILTO: handler in Opera 10

The new Opera 10.0 includes a new feature that allows users to click on mailto: links and have them open in web mail providers, such as Gmail, Yahoo! Mail, and Windows Live Hotmail. This is particularly useful for individuals that primarily use web mail instead of a standalone e-mail client.

In a clean install, clicking a mailto: link will trigger the e-mail client selection dialog, which allows users to choose between using Opera Mail, the system default mailer, and a couple of random web mail providers. Users can change their settings in Preferences > Advanced > Programs by editing the “mailto” handler.

This feature works via a list of web mail providers in the webmailproviders.ini file in the “defaults” sub-directory of the Opera program directory. On Windows, for instance, the file will be in “C:\Program Files\Opera\defaults\”. On OS X, the file is in the Opera.app package in the “Contents/Resources/defaults/” directory. Opera will need to be restarted to pick up new/changed entries in the file.

For whatever reason, they don’t include GMail by default, if you would like to use it add the following code to the bottom of the webmailproviders.ini

[Gmail]
ID=1
URL=https://mail.google.com/mail/?view=cm&fs=1&to=%t&su=%j&body=%m&cc=%k&bcc=%l
ICON=http://mail.google.com/favicon.ico



  • davidterei

    Great, I have been looking for this ever since they decided to remove Gmail support. They claimed it wasn't supported well enough by Gmail but seems fine to me.

    For those on linux, the file is stored at /usr/share/opera/defaults/webmailproviders.ini

  • http://twitter.com/jimbolaius Jim

    It may be worth to note that upgrading Opera totally rewrites the “webmailproviders.ini” file.

  • http://livejamie.com livejamie

    You noticed that as well with the recent update, eh? lol

    How annoying of them.

  • eydaimon

    Hi, I just tried this, but gmail gets stuck loading.

    http://d0me.net/Gmail-20090909-171134.png

    Any ideas?

  • http://livejamie.com livejamie

    Hrm, I don't think it should effect your Gmail at all, what OS and
    Version of Opera are you running?

  • eydaimon

    Version: 10.00
    Build: 6652
    Platform: Mac OS X
    System: 10.6.0

    But I tried to paste the URL it generated into Firefox, and the same problem happens there.

    Here's an example URL which causes the problem:
    https://mail.google.com/mail/?view=cm&fs=1&to=e…

    Tested with Safari as well.

  • http://livejamie.com livejamie

    If you remove the Gmail handler, does it amend the situation?

  • eydaimon

    I'm not sure I follow. remove it from where? from the ini file? If so, that should have shown up as working in firefox then.

  • eydaimon

    I got a fix. See below. I also added custom domain as a template for anyone else. Make sure to replace example.com with your own.

    [Gmail]
    ID=8
    URL=https://mail.google.com/mail/?source=mailto&tf=1&view=cm&fs=1&to=%t&su=%j&body=%m&cc=%k&bcc=%l
    ICON=http://mail.google.com/favicon.ico

    [Example]
    ID=9
    URL=https://mail.google.com/a/example.com/mail/?source=mailto&tf=1&view=cm&fs=1&to=%t&su=%j&body=%
    ICON=http://mail.google.com/favicon.ico

  • http://www.unifyingtheory.net/ MyR

    Thank you! Works for me on Ubuntu 9.04

  • saulobenigno

    Thank you very much. Worked perfect.

  • lolmaus

    I got “Error 400 Bad Request”.

    Here's a fix:

    [Gmail]
    ID=1
    URL=https://mail.google.com/mail/?extsrc=mailto&url=%s
    ICON=http://mail.google.com/favicon.ico

  • http://subs.hopto.org lexein

    @lolmaus
    Thanks – your fix worked well for me – Opera 10.53 on OS X 10.5.8
    Do you happen to know a way to force GMail to plain HTML mode for message composition only? That would _really_ speed up “compose” page loading on older machines.

  • lolmaus

    I'm not sure but try adding “&ui=html” to the URL.

  • Uffe Hellum

    This fixed my issue, thanks!

    Opera is now handling email links correctly through gmail.

    It boggles my mind why they would disable this important functionality.

    /Uffe

  • http://www.gohost.in Domain Registration India

    opera new version is easy to access compare to previous version. and also opera version working on ubuntu also.

  • Asdf

    opera 11 fix?

  • Damon

    That worked great, thanks!

  • http://www.mactonweb.com web design california

    Wow this is great. This will be good. I would like to give it a try. Thanks for the tip.

  • http://www.marathonm2m.com/m-to-m-security-sector/container-tracking.aspx container tracking

    Great with disqus..

  • Kristoffer

    Bad Request
    Error 400 in Opera 11.60 for OS X.

  • henriko

    thanks, that did the trick for me too.

blog comments powered by Disqus

Content on this site is licensed under a
Creative Commons Attribution-Share Alike 3.0 License

Powered by WordPress