Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I clicked a mailto: link in a web page the following page appeared. How would I make it open in Gmail instead? I am using Windows 7.

enter image description here

share|improve this question

You can just create a link like the following and it will attempt to open Gmail and create a new message. You can specify "to" and "subject" and even the "message"

<a href="https://mail.google.com/mail/u/0/?view=cm&fs=1&to=toemail@email.com&su=hello world" target="_blank">
share|improve this answer
1  
It will attempt to open Gmail is not an answer. Also OP is asking about mailto links which are on contact forms. – The_IT_Guy_You_Don't_Like Dec 9 '15 at 23:33

If you are using the latest version of Chrome:

Go to Gmail, and you should see an icon in the address bar that looks like two overlapping diamonds (see the Chrome support link here). If you click the icon and select "Use Gmail," Gmail will be used to handle your mailto: links in the future.

If you do not see the two diamonds, you may need to double-check that handlers are enabled. You can enable them by going to Chrome settings --> Show advanced settings... --> Privacy section, Content settings... --> and look under handlers to make sure you have "Allow sites to ask to become default handlers for protocols" selected (see screenshot below).

Allow sites to become default handlers screenshot

share|improve this answer
    
This won't always show (e.g. if a previous user selected and then disabled this), so a more general solution would be better. – tog22 Jun 11 '14 at 7:35
    
This answer also works on OSX Mavericks, which is awesome for me :) – alengel Dec 3 '15 at 15:02

In my experience, the suggested answer didn't fix anything as I just got a blank settings dialog window. Below are the real fixes for Mail and Calendar.

Fix mailto:

  1. Copy: javascript:navigator.registerProtocolHandler("mailto","https://mail.google.com/mail/?extsrc=mailto&url=%s","Gmail")
  2. Log into Gmail
  3. Click the address bar to select all and paste into address bar (GMail being your active window - or nothing will happen)
  4. IMPORTANT: Add javascript: to the front of the pasted string because when you pasted it, Chrome trimmed it.
  5. Hit enter and click Allow on dialog.

Fix webcal:

  1. Copy: javascript:navigator.registerProtocolHandler("webcal","https://www.google.com/calendar/render?cid=%s","Google Calendar")
  2. Log into Gmail
  3. Click the address bar to select all and paste into address bar (Google Calendar being your active window - or nothing will happen)
  4. IMPORTANT: Add javascript: to the front of the pasted string because Chrome trimmed it.
  5. Hit enter and click Allow on dialog.

Now when you click on a mailto: or webcal: url, gmail will handle both respectively.

Credit source: Can't edit protocol handlers

share|improve this answer

You can also search "file type" in the windows search box, and select change the file type associated with a file extension. Then scroll down to MAILTO. Double click on it and select chrome.

share|improve this answer
    
I think that is the "better start" since it works as well with email links embedded in word docs or PDFs. However it's only the first half of the solution: on my laptop it just switches to Chrome. What's next ? – iDevlop Aug 15 '15 at 13:50

Gmail Notifier is a better solution for all browsers.

Here is answer from Google:

http://support.google.com/mail/bin/answer.py?hl=en&answer=10966

share|improve this answer
1  
GMail Notifier is no longer supported. – Leo Gurdian Jun 12 '15 at 21:42

So based on your tags Google Chrome appears to be your web browser, go to the Google Webstore and download Send From Gmail (By Google) which will make GMail your default email application. https://chrome.google.com/webstore/detail/send-from-gmail-by-google/pgphcomnlaojlmmcjmiddhdapjpbgeoc

For Firefox users, go to Tools in the Menu Bar, then Options, the Applications tab, then look for the Mailto: and change the dropdown menu to "Use Gmail"

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.