Mailgo, a new concept of mailto and tel links
mailgo.dev
mailgo.dev
We're almost there, the only issue is that there's no declarative way to advertise support for mailto links, webmails need to ask the user.
What's the alternative? You can't let any website register a handler for mailto without asking the user
Get the OS/browser to show a list of registered handlers when a mailto link is clicked.
Order the list by frequency of use so random websites you visited 5 years ago stay nicely below the actual one you want to use. Also maybe unregister or hide anything not visited for 30 days, so yo'd have to revisit the site to reregister it.
[0]: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/r...
The advantage with the standard is that my phone proposes from itself what it would do when I click a "tel:" URL or "mailto:" URL. And what I do most is just long-press and copy to clipoard. As this uses the native UI from my mobile OS, this just feels better then a HTML-rendered custom UI.
This is one of the old and golden web rules: Don't surpise the user with some UI he would not expect. Be consistent to the standards.
If you use a provider like gmail or hotmail, there's a chance they're not set up as your mailto link handler. So in that case, some random email client you have installed will open up and bug you with its first time setup wizard.
Best case, the user is annoyed but still manages to copy the address manually. Worst case, they conclude the link is broken and don't use it.
so, they should set themself up. what drives someone into invent yet another tool which accomplish something on a much higher cost, which is other programms' responsibility and those could less painstakingly fix it.
But at the same time it's not easy to explain to a client that their email link might not work for a sizable portion of their visitors, especially if they've seen solutions that work all the time.
I also agree about avoiding unnecessary bloat and this seems like a decent tradeoff. It's just a tiny popup that includes the native option, so you could argue it sits between a plain mailto: link and a full-on contact form with a backend service for sending emails/texts.
Is it just me or are others facing the same problem?
Still it's a 'mailto:' link which might not translate to those media. But a 'tel:' link could possibly translate to "Connect with LINE" or other options.
Anyway I think this project is a very good idea. These sort of protocol links are very useful, considering on mobile you are always app switching to share something. Unfortunately, mobile browsers don't support "navigator.registerProtocolHandler" but there might be workarounds for PWAs.
https://developer.mozilla.org/en-US/docs/Web/API/Navigator/s...
NB support is somewhat limited:
Numbers? I always clicked "yes" to that prompt when I was using GMail as my client. Maybe I'm weird?
I don't know what prompt your talking about. Maybe an uncommon browser feature?
A good example is chat widget. Instead of using a fixed positioned chat widget that annoys your users (esp those on mobile), why not stick to good old "Contact Us" link that opens your chat widget only when it is clicked.
I think it's nifty, and I'll probably implement it on my personal site.
If I click an email address I expect the mailto behaviour (and to a lesser extent with hyperlinked phone numbers) but often you'll see the case where the hyperlink text actually just says "Contact" or similar and it opening my email client is completely unexpected