0

Often times when there's an email address on a website, it is not just plaintext, but a link (hyperlink?). However, instead of containing an address such as https://unix.stackexchange.com it contains mailto:[email protected] which - upon a click - opens a browser "page not found". This seems very useless, however a quick search on the Unix StackExchange suggested that the phrase MAILTO: has some function/meaning on Unix/Linux systems (and maybe on others). Many questions also refer to "cron". While I understand the primary function of "cron" jobs (automatic actions being done at certain times/periods) I have trouble to connect it with the mailto: hyperlinks.

So what is the function of these hyperlinks and is it in any way connected to "cron" jobs - if so, how is it supposed to work?

Patrick Mevzek
  • 3,130
  • 2
  • 20
  • 30
Niteraleph
  • 49
  • 7

1 Answers1

3

They are a URI for an e-mail address that the browser can use to invoke an e-mail application in order to send e-mail to the given address. The browser should provide a configuration option to set the application used.

cron uses the unrelated MAILTO variable (i.e. MAILTO=...) in its configuration to know where to send e-mail with output from the commands it runs rather than sending it all to root.

Ignacio Vazquez-Abrams
  • 44,857
  • 7
  • 93
  • 100
  • Thank you, this answer clarified the issue. While I suspected that it should invoke an e-mail application, I was very confused about how cron relates to this. Now I now that the MAILTO variable is unrelated and serves a different function – Niteraleph May 02 '18 at 08:21
  • The "mailto" URI scheme is defined in https://tools.ietf.org/html/rfc6068 – Patrick Mevzek Jul 05 '18 at 15:35