Make mailto: links open in gmail in Google Chrome browser (Windows XP & Vista)

September 4th, 2008

I’ve been rocking Google’s new web browser Chrome for the last few days and really like it. Browsing craigslist and clicking on email mailto: links I realized there isn’t an obvious way to force these links to open a gmail window in Chrome. Most Windows systems will have the default mailto handler set as Outlook Express.

One option is to install the gmail notifier program. I opted instead for a quick change to the Windows filetype settings.

Note that following these instructions will cause all mailto links to open in Google Chrome, even if you are browsing in Firefox, Safari or (gasp) Internet Explorer so make sure you want to use google Chrome as your primary browser before continuing.

WIndows XP

In any windows explorer window (except desktop):

  • Go to Tools > Folder Options > File Types
  • Near the top of the list of filetypes, click on “URL:Mailto Protocol”
  • Click on “Advanced”
  • With “open” highlighted, click on “Edit”
  • Change the application to:
    "C:\Pathto\chrome.exe" https://mail.google.com/mail?extsrc=mailto&url=%1

This should all be on one line with a space between the quotation mark after the path info and the https. My path was “C:\Documents and Settings\Brendan\Local Settings\Application Data\Google\Chrome\Application\chrome.exe” To find yours, just right click on a google Chrome shortcut (like the one in your start menu), go to “properties” and copy the “Target” field.

Windows Vista

Thanks to Ed H. in the comments below for these instructions

  • Open your registry editor (Type “regedit” at your start menu)
  • Navigate to HKEY_CLASSES_ROOT\mailto\shell\open\command
  • Edit the (Default) command from whatever it is (right click and select modify) to:
    "C:\Pathto\chrome.exe" https://mail.google.com/mail?extsrc=mailto&url=%1

In Vista, your path will be something like “C:\Users\Brendan\AppData\Local\Google\Chrome\Application\chrome.exe ” with “Brendan” being your username.

Ubuntu

How-To Geek has great instructions on how to accomplish this in ubuntu.

Open with Google Apps

Another tip from Ed H. in the comments:

If you have “Google Apps for your Domain” (i.e. you’re having Google host your domain’s email,) you can customize it for your domain by changing the URL above so that instead of “mail.google.com/mail?…” it reads “mail.google.com/a/yourdomainhere.com?…” (obviously, use the rest of the URL mentioned above after the question mark; and use your domain instead of “yourdomainhere.com”.)

55 Comments

  1. peter
    Posted September 5, 2008

    you can simply use sohial’s gmail notifier for Google Apps
    http://gmailnotifier.net

  2. Jon
    Posted September 10, 2008

    I still like to use firefox 3 because its perfectly customized with extensions, but chrome blows it away speed-wise, especially with gmail. I’d like to have firefox mailto links open up a new chrome window.. but i can’t find the “URL:mailto protocol” file type. Any suggestions?? Hope I can get this great tip working for me

  3. Posted September 10, 2008

    “URL:mailto protocol” is near the top of the list where extension is (None). On my system, it is 14th from the top.

  4. qwertyphd
    Posted September 19, 2008

    Thanks for the simple instructions. However, after I made the changes you suggested and clicked on a mailto: link, Chrome took me to the page: http://xn--app%3Dhttps-p89d//mail.google.com/mail?extsrc=mailto&url=mailto:astark1@unl.edu. I don’t understand where all the extra characters came from. Any idea how to fix this?

    Thanks!

  5. Steve
    Posted September 30, 2008

    Awesome! Worked like a charm. I’m trying to keep my system free of unnecessary apps and was missing this feature. Thanks again!

  6. sunyi
    Posted October 3, 2008

    I’ve found another programme to open Google Chrome’s mailto: links in Gmail: you can try it here: http://skaelede.hu/?e=chromemailer&lg=en

  7. ds
    Posted October 15, 2008

    you should mention that there is NO blank in front of the “app”..

  8. rB
    Posted November 10, 2008

    I cant get this to work. Currently I have the following in the Application used to perform this action blank:
    “C:\Documents and Settings\Owner\Local Settings\Application Data\Google\Chrome\Application\chrome.exe” -app=https://mail.google.com/mail?extsrc=mailto&url=%1

    I’m getting errors in chrome, does this need to be placed in some other blank?

  9. rB
    Posted November 10, 2008

    Ahh I got it to work, thanks for sharing! But is there a way to make it open a new tab rather than a new window?

  10. Posted November 13, 2008

    @qwertyphd I had the same error, try changing the hyphen before “app” to a regular dash (as in between the “0″ and “=”) and make sure there is only one space after the chrome.exe location

  11. qwertyphd
    Posted November 13, 2008

    Thanks Mike! It’s working now :)

  12. ondra
    Posted December 15, 2008

    works great! thanks, don’t you now how to make windows context menu Send to works simillary?

  13. Ed H.
    Posted December 18, 2008

    If you’re willing to do some digging in the registry, you can make this work in Vista, as well. Open up Registry Editor, and navigate to HKEY_CLASSES_ROOT\mailto\shell\open\command and edit the (Default) command from whatever it is to the string mentioned in this article.

    I haven’t fully tested it yet, but I *BELIEVE* that this changes it for EVERY USER on the computer. Don’t do this on a multi-account computer unless you’re willing to force this on everyone. (My computer only has one account, so I can’t verify easily.) It is also possible that this only changes the default setting, and any user that has manually changed their default mail handler will still use their other email program; or at worst, have to re-set it to their preferred program again.

    A second tip is that if you have “Google Apps for your Domain” (i.e. you’re having Google host your domain’s email,) you can customize it for your domain by changing the URL above so that instead of “mail.google.com/mail?…” it reads “mail.google.com/a/yourdomainhere.com?…” (obviously, use the rest of the URL mentioned above after the question mark; and use your domain instead of “yourdomainhere.com”.)

  14. Posted December 20, 2008

    Instead of this:
    “\path\to\chrome\Google\Chrome\Application\chrome.exe”
    -app=https://mail.google.com/mail?extsrc=mailto&url=%1
    It should be this:
    “\path\to\chrome\Google\Chrome\Application\chrome.exe”
    \app=https://mail.google.com/mail?extsrc=mailto&url=%1

  15. Posted December 22, 2008

    Thanks for the tip, “Game tips Zone”. It looks like you don’t need the “\app =” at all, you can just pass the URL after the path to chrome.exe with a space separating them. Perhaps this is due to a change in one of the recent google chrome releases.

  16. Christoph
    Posted January 5, 2009

    Perfect, thanks!

  17. Tialoc
    Posted January 16, 2009

    I think Peter (Post #1) is the author of Sohial’s Gmail notifier. He’s even promoted it on my blog. It has changed and it’s not very good nor is it free anymore. Peter, stop promoting it…

  18. lionqueen
    Posted January 19, 2009

    Thank you for this topic. Now it works perfect! This option in the Gmail Notifier doesn’t work.

  19. Egon
    Posted January 31, 2009

    Worked like a charm .. thanks!

  20. vassie
    Posted February 2, 2009

    It works, but after a restart it changes back. Is there a way to resolve this?

  21. Moktarino
    Posted February 17, 2009

    How can you add in the subject field?
    like: mailto:sale-1038835744@craigslist.org?subject=2GB%20matched%20Patriot%20PC3200%20Low%20latency%20ram%20400mhz%20-%20$40%20(PDX)

  22. Posted February 18, 2009

    Ok, I figured out how.
    Check my blog for the answer.

  23. Matt
    Posted February 19, 2009

    I found a way to open the mailto links in a chrome app window…

    C:\Path\chrome.exe –app=https://mail.google.com/mail?extsrc=mailto&url=%1

  24. vog
    Posted February 25, 2009

    In my latest I.E. there is not drop down under
    “tools” that say “open folders…..”.
    So, I could not get your suggestions to work for making gmail my default email rather than the Yahoo mail that it was previously.

  25. chaim
    Posted February 26, 2009

    can you help me complete the path.
    this is my cuuret path it dosn’t work for me.
    “C:\Documents and Settings\ADMIN\Local Settings\Application Data\Google\Chrome\Application\chrome.exe” -app=https://mail.google.com/mail?extsrc=mailto&url=%1

  26. Jürgen
    Posted March 4, 2009

    in my haste to change I did not make a note of what it used to say in the URL:mailto protocol before I changed it to: “C:\Pathto\chrome.exe” https://mail.google.com/mail?extsrc=mailto&url=%1

    what did it used to say to get it to go to Outlook in case I wish to return to this.. (I’m annoyed subject line doesn’t prefill as it did in outlook) is there some more code I can add to the gmail one?

  27. Posted March 16, 2009

    Thanks for this. I used your instructions to make mailto: links open in Mozilla Thunderbird. I just changed the application path to thunderbird.exe’s location.

    Thanks again!

  28. Daniel
    Posted April 15, 2009

    Worked great!

  29. Ludvig
    Posted April 22, 2009

    To make the new email open in a nice Chrome application window, add –app= before the URL, like this:

    “C:\Pathto\chrome.exe” –app=https://mail.google.com/mail?extsrc=mailto&url=%1

  30. Ben
    Posted May 5, 2009

    awesome.. so much better than having to wait an age for Outlook to open up just to close it, copy the email address and compose a gmail

    THANKS

  31. Adam
    Posted May 7, 2009

    @Jürgen
    the original text in the “Application used to perform action” field was:

    “C:\Program Files\Outlook Express\msimn.exe” /mailurl:%1

  32. Sam
    Posted May 10, 2009

    Nice one Brendan – this has almost made my life complete…

  33. Andre
    Posted June 18, 2009

    http://www.google.com/support/forum/p/Chrome/thread?tid=0b8a4badbeaa646f&hl=en#9

    If you look at the 9th post he made a nice java script which changes all the mailto links so Chrome can use them properly.

    Works real well in firefox to open links in Chrome/Gmail

  34. Ray
    Posted June 24, 2009

    Can anyone tell me what that %1 is for? I’ve tried searching for an answer but Google just ignores the % sign.

  35. João Fernando
    Posted June 27, 2009

    Great! Thanks from Brazil!

  36. otis
    Posted July 16, 2009

    sweet! thanks!

  37. Heyman
    Posted July 25, 2009

    SOLUTION TO OPEN ACCOUNT ACTIVATION LINK

    Go to RUN and run the following path:

    C:\Program Files\iTunes\iTunes.exe /url “itmss://buy.itunes.apple.com/WebObjects/MZFinance.woa/wa/verifyAccountEmail?evcode=…………”

    Note: you should replace the address starting with itmss://……….. with your own activation link. You must inclide the “” before the itmss:// and at the end of the link.

    IT WORKS

  38. Dezorian
    Posted August 3, 2009

    Been looking for ages for a simple solution without downloading another app.

    Thanks!!!

  39. Posted August 7, 2009

    Works well!
    Any idea how to change the mailto “thing” when wanting to send a file by rightclicking on a file and choosing copying/sending to emailreceiver? In this case it is still outlook which opens….
    Maybe an idea for Google to have a button that states, “change all to gmail and chrome”…

  40. bhaal
    Posted October 15, 2009

    Works on SRWare Iron too.

  41. Posted October 19, 2009

    I use Chrome on my Vista PC, but my wife doesn’t. I was able to set it up so that mailto calls GMail with Chrome solely from my Vista account by following the instructions at this website:

    http://a1979shakedown.wordpress.com/2009/04/14/set-mailto-to-use-gmail-in-chrome/

    It was very easy. The hardest part for me was figuring out how to properly do the MODIFY from the registry — it turns out I needed to right-click on the “ab (default)” and then choose MODIFY in order to modify the right thing. As soon as I did that, voila, mailto links were calling up GMail in Chrome.

  42. Gon
    Posted November 1, 2009

    super! thanks!

  43. Posted November 23, 2009

    Thanks so much.

  44. nicola
    Posted November 24, 2009

    works, thanks.

  45. Jim
    Posted December 9, 2009

    And how do I do this in Ubuntu Linux?

  46. Posted December 10, 2009

    Try these instructions on Ubuntu, I haven’t tried them myself but they look promising: http://www.howtogeek.com/howto/ubuntu/set-gmail-as-default-mail-client-in-ubuntu/

  47. m
    Posted December 10, 2009

    you rock

  48. Dave
    Posted December 17, 2009

    Just install Google Apps. Thats it. When you install it it will ask if you want to use it as your default. As long as you have a gmail account you are good to go. way better than the gmail notifier. If you ever exit the notifier while it is running, then you have to reinstall it if you want it to be the default mailto when you click on an email link on a website. Pain in the but

    Google Apps fixes this for good. No BS. DOWN WITH OUTLOOK and its friggin headaches! AHHHHHH!

  49. Dave
    Posted December 17, 2009

    P.S Google Apps works in XP and Vista flawlessly. This is the easiest fix of them all.

  50. Posted January 4, 2010

    Thanks for all the comments and discussion. I updated the content of this post with info from the comments to make it more useful for everyone else.

  51. Posted January 25, 2010

    Dude awesome tips! I’m in the process of switching from Firefox to Chrome entirely, on Firefox I have it default to GMail and was getting conflicting info on how to do it in Chrome. Lifesaver! Thanks!

  52. martin
    Posted January 30, 2010

    Cool! I followed the Ubuntu link, thank you!

  53. Helldire
    Posted February 7, 2010

    Thx.
    In my case it works only in simple text mode. Another, Chrome can’t finish to load extended editor and main field is anactive. :\

  54. Jürgen
    Posted February 8, 2010

    Hi, love using this fix, the to field and subject line prefill nicely, however I can’t seem to get gmail to load what ever info is supposed to be coded into the body area like outlook does. please advise, thank you!

  55. Jürgen
    Posted February 8, 2010

    every time I restart my computer, the gmail as default mail feature is lost.. how do I resolve that or do I need to go thru this process each and every time I turn off my computer.

One Trackback

  1. [...] Make mailto: links open in gmail in Google Chrome browser (Windows … 4 Sep 2008 … Make mailto: links open in gmail in Google Chrome browser (Windows XP only). I’ve been rocking Google’s new web browser Chrome for the last … http://www.bnee.com/2008/09/make-mailto-links-open-in-gmail-in-google-chrome-browser-windows-xp-only/ – 17k – 13 hours ago [...]

Post a Comment

Your email is never shared. Required fields are marked *

*
*

Bad Behavior has blocked 1094 access attempts in the last 7 days.