The right way? Make a URI (using the mailto URI mailto ) and bind it (using the a element of HTML).
<a href="mailto: email@example.com "> email@example.com </a>
The best way? Depends on your criteria.
If you want to make the life of your visitors (including people, as well as bots) easier , use the link.
If you want to make the lives of your visitors (including people, as well as bots) more difficult , obfuscate the address.
“Harder” can also mean impossibility, depending on how you confuse. Many blind users will not be able to access your email address if you post it as an image. Some users with intellectual disabilities will not be able to exchange [at] for @ . Users without the copy-paste function may not remember your address when switching applications and the need to enter it manually. Users without JavaScript may not have access to some smart widgets. And so on.
source share