// you’re reading...

How in the Tech

Launching Gmail in Firefox from mailto Links

Firefox 3 has brought about a whole slew of new features and abilities, one of them is being able to register webapps as link handlers. What is a link handler? In this example, when a web user clicks an email address a properly configured computer will open the default email program with the clicked email address already in an edit window, ready for composing. New to Firefox 3 is allowed this mailto: link to open webmail rather the typical email desktop program. By default, and strangely enough given Mozilla and Google’s ties, Firefox only supports mailto: links for Yahoo mail. Here’s what you can do about that in order to support Gmail.

  1. In a new Firefox window/tab, type about:config in the address bar.
  2. From the Filter box, type gecko.handlerService.allowRegisterFromDifferentHost
  3. Double click on the result and change the value from false to true.
  4. Copy and paste this snippet of javascript into your address bar:
    • javascript:window.navigator.registerProtocolHandler(”mailto”,”https://mail.google.com/mail/?extsrc=mailto&url=%s”,”Gmail”)
    • if you are a Google Apps user use this snippet instead, replacing howinthetech.com with your domain:
      javascript:window.navigator.registerProtocolHandler(”mailto”,”https://mail.google.com/a/howinthetech.com/mail/?extsrc=mailto&url=%s”,”Gmail”)
  5. Firefox will request permission to register Gmail as the mailto handler. Click Add Application
  6. Lastly, for security purposes, go back to step 3 above and revert gecko.handlerService.allowRegisterFromDifferentHost back to false.

Now the next time you happen across a mailto: link Firefox will ask you which application you want to use. Choose Gmail and check Remember my choice for mailto links to make the change permanent.

If you want to be notified the next time I write something please subscribe to my RSS feed. Thanks for reading!

Related Posts

Discussion

No comments for “Launching Gmail in Firefox from mailto Links”

Post a comment