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

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 XP 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.

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 Chome shortcut (like the one in your start menu), go to “properties” and copy the “Target” field.

35 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!

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 *

*
*