2

MWE

\documentclass{article}
\usepackage{hyperref}
\begin{document}
This works fine:
\href{mailto:[email protected]}{[email protected]}\\
I would like this to open the default e-mail program:
\href{eposta:[email protected]}{[email protected]}
\end{document}

and output

enter image description here

This is because "E-mail" is "E-posta" in Turkish.

10
  • 1
    What is your question? I don't get it. Do you want to open the default email software if somebody clicks on the link? Commented Sep 15, 2015 at 11:55
  • This is most likely the default text Acrobat Reader and perhaps other views show by default if the mouse is over a mail address. I don't know whether this is changeable at all
    – user31729
    Commented Sep 15, 2015 at 12:01
  • @Dr.ManuelKuehner, yes. Exactly true.
    – Özgür
    Commented Sep 15, 2015 at 12:04
  • 1
    @Özgür: So you want hello:[email protected] to cause an email client to open?
    – Werner
    Commented Sep 15, 2015 at 13:14
  • 1
    @Werner, I wrote an example. That I want E-posta, because E-mail=E-posta in my language. I want, whole Turkish Language in my document.
    – Özgür
    Commented Sep 15, 2015 at 14:37

2 Answers 2

18

I think you misunderstood something here.

Package hyperref is designed to add a clickable link into the internet to allow to open a special website or to open a mail program to send an email to the defined address.

A computer, exactly an operating system (Linux, Unix, OS x or Windows), can do this only if the information is provided which protocol is used for this service.

So an URL has to be something like that:

protocol://domain.top level domain or email@address

The protocols are http (web side), https (secure connection to website), mailto (email) or ftp (down- and uploads with ftp server) and others, named in the rfc files. hello is there not named!

Examples:

  • http://tex.stackexchange.com The url for this site
  • https://tex.stackexchange.com Secure connection to this site
  • mailto://[email protected] Send email to adress [email protected].

The operating system can now start -- after knowing the protocol -- the corresponding program. For http etc the used internet browser, for mailto the installed email program. Both, browser and email program are different for different OSs and users. Nevertheless, protocol mailto is known by each operating system, your wanted hello not.

That you have to click on that link is a thing of security, or do you want to get a pdf, filled with thousands of virus containing web pages or other bad thing, and all of them are opened when you open the pdf file to read it? I do not want this, I think you do too?

1
  • 12
    Is there // in a mailto?
    – daleif
    Commented Sep 15, 2015 at 14:49
8

Since this has been revived I will add that the visible part can be any phrase you like including E-posta (It is only the tooltip for protocol) that should not/cannot change.

enter image description here

\documentclass{article}
\usepackage{hyperref}
\begin{document}
You can show a link in any language or wording you want

However the mail protocol is ``mailto: (with or without //)''
\newline
These work fine:

\href{mailto:[email protected]}{E-posta: [email protected]}

\href{mailto:[email protected]}{e-posta: [email protected]}

\end{document}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .