Chrome gmail mailto

A simple but useful question!

When you click on a "mailto" link in Chrome, it usually opens the default email client on your system. However, if you want to open the email link in Gmail instead, you can use a simple trick:

  1. Right-click on the "mailto" link.
  2. Select "Inspect" (or press Ctrl + Shift + I on Windows or Cmd + Opt + I on Mac).
  3. In the Chrome DevTools, switch to the "Elements" tab.
  4. Find the "mailto" link in the HTML code and click on it.
  5. In the address bar, you'll see the mailto protocol followed by the email address. Replace mailto with https (or http if you prefer).
  6. Add ://mail.google.com/mail/?view=cm&to= to the beginning of the address.
  7. Press Enter to open the email link in Gmail.

For example, if the original link is mailto:[email protected], you would replace it with https://mail.google.com/mail/?view=cm&to:[email protected].

From now on, whenever you click on a "mailto" link, Chrome will open it in Gmail instead of your default email client.

Note: This trick works for most "mailto" links, but some might not work due to specific implementation details.