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



  • saulobenigno
    Thank you very much. Worked perfect.
  • eydaimon
    Hi, I just tried this, but gmail gets stuck loading.

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

    Any ideas?
  • 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.

    Thanks btw :)
  • 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
  • MyR
    Thank you! Works for me on Ubuntu 9.04
  • Jim
    It may be worth to note that upgrading Opera totally rewrites the "webmailproviders.ini" file.
  • You noticed that as well with the recent update, eh? lol

    How annoying of them.
  • 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
blog comments powered by Disqus

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

Powered by WordPress