Categorías
Tecnología

Open mailto: links from Outlook web or Gmail in Chrome.

Tip for Chrome developer tools

1.- Access your Outlook web/Gmail account.

2.- Open Chrome developer tools [howto]

3.- Go to Console [howto]

4.- Paste this code and push intro to execute:

  • Outlook web:
    navigator.registerProtocolHandler("mailto", "https://outlook.office.com/?path=/mail/action/compose&to=%s","Outlook");
  • Gmail:
    navigator.registerProtocolHandler("mailto","https://mail.google.com/mail/?extsrc=mailto&url=%s","Gmail");

You may see something like this in your browser:

Allow the permissions and Test it!

(*) Bonus: If you want to know which mail handlers Chrome has previously registered open this url in your browser:
chrome://settings/handlers

Por Luismi Sanchez

Full Stack Developer

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

Este sitio usa Akismet para reducir el spam. Aprende cómo se procesan los datos de tus comentarios.