May 9, 2008

Firefox 3 Gmail web mail handler bug fixed

For all the Gmail fans who are frustrated by the absence of Gmail in Firefox3 to open their mailto links(or the inclusion of Yahoo mail there ;-) )

A new gmail url is released which accepts the mailto url directly. So Firefox 3 users can now use Gmail as their default mailto: handler .

How to do this.

1. set gecko.handlerService.allowRegisterFromDifferentHost to true in about:config

2. Run this in address line
javascript:window.navigator.registerProtocolHandler("mailto","http://mail.google.com/mail/?extsrc=mailto&url=%s","GMail")

Firefox will ask permission to add this as default mailto handler..say yes

3. Next time u click a mailto link it will ask which app to choose...choose Gmail.....you are done


[ If you enjoyed this post, please Digg it. Thanks ]

41 comments:

  1. Thanks for the suggestion. Works great! I updated my tutorial with a modified version of your instructions to work with Google Apps for people who have their own domain.

    Tutorial Here

    ReplyDelete
  2. I'm using FF3 RC1 and it dont want to work for me. When I'm pasting JS code into adressbar nothing happens.

    ReplyDelete
  3. Great job, thanks! Do you know a way to make this popup in a separate small window a la shift+c compose? Thanks again.

    ReplyDelete
  4. @Rajca

    Make sure you have Javascript enabled under Tool>Options>Content

    Also, make sure any addons, like NoScript aren't blocking it.

    Once these have been met, when you past the Javascript into the addressbar, and hit enter, it should work. Note, in FF3, there isn't a popup like FF2, instead there is a popup line under your tabs.

    Hope this can help

    ReplyDelete
  5. Same here. FF3RC1. No response on address bar. Then I tried pasting it in web pages... as an a href target, then as various dom event targets with "return true;" ...all to no avail.

    ReplyDelete
  6. Having the same trouble with the line of javascript. I don't have NoScript, but I've disabled all of my add-ons and javascript is enabled in Options>Content.

    Could I have messed around with an about:config setting in the past that would have disabled certain javascript actions?

    ReplyDelete
  7. Okay, the javascript issue has been solved by Gina Trapani over at the Lifehacker blog...

    If nothing happens when you paste the javascript into the address bar, make sure that the network.protocol-handler.external.mailto value is set to true in the about:config window.

    ReplyDelete
  8. This is great but I'm missing something. It works as advertised except when I click a mailto link it opens a new tab and goes to the free gmail login page, not the page for people use gmail premier edition with their own domain. When I use the page it opens and enter my premier edition login, i.e. chris@mydomain.com and password (not my free account login/password) it does log me in but opens to my free gmail email account mailbox. Very strange how it even knows about that account.

    Help, please.

    ReplyDelete
  9. @christopher
    Check the first comment. Ozz314 has modified the steps to suit those who have their own domain.
    Hope it helps :-)

    ReplyDelete
  10. Is there anyway to have the mailto: open up a new tab instead of the tab that you're in?

    Thank you for this great hack...

    ReplyDelete
  11. The easy way is Ctrl + click ....or middle click ... :-)

    ReplyDelete
  12. Thank you.. That does the trick for now :)

    ReplyDelete
  13. Thanks for the fix. I appreciate it, and as you might have noticed from a link back or two that I saw on my blog, I posted a link to your site here...

    Its appreciated...

    ReplyDelete
  14. @adam Thanks for the comments...keep visiting...

    ReplyDelete
  15. Ok, for those of us who don't live and breath Firefox 3, please tel me how I get to right the menu to do this. Nothing happens when I follow the lifehacker's instructions.

    Tony wrote: If nothing happens when you paste the javascript into the address bar, make sure that the network.protocol-handler.external.mailto value is set to true in the about:config window.

    Thanks!
    d-

    ReplyDelete
  16. Type about:config in address
    Accept that u will b careful...
    type network.protocol-handler.external.mailto in the filter
    click on it and change false to true...
    paste the javascript snippet in ur address bar....
    Thats it

    ReplyDelete
  17. it did not work for me either... all about config stuff that is mentioned from lifehacker and yourself are set to true java is enabled and its not working... i am using FF3.0

    ReplyDelete
  18. ps... i also have ALL addons disabled

    ReplyDelete
  19. ps... i also have ALL addons disabled

    ReplyDelete
  20. The fix is here:

    http://www.businessmarketingguru.com/news/firefox3-and-gmail-bug-fix

    ReplyDelete
  21. You can middle-click on a link to open it in a new tab (that goes for mailto links also).

    ReplyDelete
  22. The only problem is it opens the mail in the same window - How do you make it open in a new tab?

    ReplyDelete
  23. you need to do it when you have gmail open or firefox will think it is an unwanted hacked website

    ReplyDelete
  24. I had this working for the longest time -- gmail set as my mailto.

    I installed the toolbar, but didn't like it. So I uninstalled it and lost the mailto feature.

    I have tried all the suggestions on here, anything else anyone can point to me?

    ReplyDelete
  25. You dont need all this crap anymore ... just pick mailto handler in gmail preferences..

    ReplyDelete
  26. Where is the mailto handler in gmail preferences? Are you referring to an addon? I don't see that in gmail notifier or better gmail 2.

    I've tried this over and over, but it keeps popping Outlook up to handle the mailtos. And I don't see a mailto app in the options/applications in FF 3 options

    ReplyDelete
  27. Tools>Options>applications>mailto

    I'm trying to undo this and Firefox is stuck with the Gmail setting.

    ReplyDelete
  28. Does anybody know how I can set the L.Click of mailto links to be opened in a new tab or a new window by default? Please note the use of "set" and "by default." In other words, I am not interested in hearing how I can use Ctrl+L.Click to do this, or M.Click. I already know about these functions, as I use them often for other purposes. The point is, I don't naturally remember to Ctrl+L.Click or M.Click when opening a mailto link, and thus I would prefer NOT to have to remember. Having Firefox do this FOR me by way of a standard L.Click would accomplish this wonderfully. ;)

    ReplyDelete
  29. I've installed this successfully, everything works, except the TO: field in gmail doesn't populate the email address I just clicked on. Help

    ReplyDelete
  30. Bump on the auto open of a tab for gmail

    ReplyDelete
  31. This comment has been removed by a blog administrator.

    ReplyDelete
  32. I have the opposite problem; my mailto goes to gamail and I want Thunderbird to be my default. What do I change? I don't want to screw up anything.

    gecko.handlerService.allowRegisterFromDifferentHost;false
    gecko.handlerService.schemes.mailto.0.name;Yahoo! Mail
    gecko.handlerService.schemes.mailto.1.name;Gmail

    ReplyDelete
  33. i'm still having problems with this. i've opened the link in gmail, clicked on "add application" when it came up, but then it's not in my applications list. mailto isn't working, and now links in AIM are not being opened in firefox either. i've changed all the mentioned protocols in about:config, i don't know what else to do.

    ReplyDelete
  34. My mail to link works for gMail, but it doesn't open up the gMail account that I am currently signed in under. It opens another gMail account of mine. Any suggestions?

    Thanks!

    ReplyDelete
  35. I don't know what your step 1 means. Since I didn't understand it, I went to another article http://email.about.com/od/gmailtips/qt/et_default_prog.htm?rd=1, which seemed less confusing and accomplished the same.

    On a related subject, since you have researched this, I wonder if you know how the following may have happened- Yesterday, I wanted yahoo as my default mailtp app, so I downloaded Firefox with Yahoo and installed greasemonkey to enable the mail to script. But my mail to links opened in Gmail!! I had to manually rewrite the preference in the greasemonkey code to set it from gmail to yahoo. Then I decided that gmail was a better and more free program (I pay yahoo to access my other pop mail addresses, which is free in gmail). Then I had the darndest time getting rid of yahoo, even after rewriting the script back to gmail. Any way, the situation is resolved, but it's a mystery how gmail snuck in.

    ReplyDelete
  36. FFS this is Ooooold people.See the date May 9 2008!!!!!! Now you dont need any of this workarounds.

    ReplyDelete
  37. Hey thanks for the tutorial !

    I'm having problems when I click on email address. The selected email address don't appear in the "To" box. So I have to ctrl+c ctrl+v every time I want to email someone, what is quite annoying. Anyone has an idea for solving that ?

    ReplyDelete