Which link opens an email, a call or a text to you?
Type an email address with a subject and a message, or a phone number. You get a link encoded the way the standards ask, a button to try it, and the HTML for a button for your website or newsletter.
One address or several, separated by commas. "Name <address>" works too; the name is left out, because a mailto link only carries the address.
It opens as a draft in the visitor's email app, ready to edit and send. Keep it short.
Greek numbers can be typed as you say them: 210 123 4567, 694 123 4567, +30 694 123 4567 or 0030 694 123 4567. For another country, start with + and its country code. Short Greek numbers such as 1500 also work.
Phones do not all read a message from a link. See "How phones differ" below the result.
What it makes
- Email links (mailto). Addresses, cc, bcc, subject and message, encoded as RFC 6068 asks: spaces as %20, line breaks as %0D%0A, signs such as & and ? percent-encoded so they cannot break the link, Greek as UTF-8, and a Greek domain name in its punycode form.
- Call links (tel). The number in the global form RFC 3966 asks for, with +30 added to Greek numbers and no spaces. A short Greek number gets phone-context=+30, as the RFC asks for local numbers.
- SMS links. The number and an optional message, in the format of RFC 5724, the standard for sms links: sms:+30...?body=, with every sign in the message percent-encoded.
- A button. The HTML for a link that looks like a button, with its styles written inline so it also holds up inside an email.
What it cannot do
It cannot tell whether an address or a number works. It checks that they are written correctly, then builds the link.
It cannot choose the app. A mailto link opens whichever email app the visitor has set as the default, and a computer without one may do nothing. Showing the address as text next to the button helps those visitors.
It cannot hide the addresses. Everything in the link, bcc included, can be read by anyone who sees the page, and RFC 6068 warns that addresses in links get harvested for spam.
Questions
Why does the link show %20 and not spaces or plus signs?
A link cannot contain spaces, and RFC 6068 says spaces in a mailto link should be written as %20. Some programs read a plus sign as a space, so a real plus is written as %2B to be safe.
Why does the call link start with +30?
RFC 3966 asks for the global form of a number whenever there is one, so the link works the same from a Greek phone and a foreign one. Spaces are not allowed in it either.
Does the SMS message work on every phone?
Not for certain. RFC 5724 defines the message in the link, but Apple's URL scheme reference says an sms link must not include message text, and Android's documentation passes the text to apps separately. Try the link on an iPhone and an Android phone before you print it.
Is anything I type sent anywhere?
No. The links and the HTML are made inside your browser and the page sends nothing to a server.