HTML - E-mail (mailto link)

  »   Basic HTML  »   HTML Tutorial - E-mail / inserting email into html pages

Creating links of email type is very simple. It must be mentioned that when you put an email's link on a public page, is very easy for an expert to find it and use it later to send spam messages.

A different way, which lowers the risk of spam, is the implementation of an e-mail form in the content of your page.

HTML - E-mail links

If you want someone to write you an email the best way is to put a link with your email and a pre-established subject.

html<a href="mailto:someone@example.com?subject=Questions" title="">Questions here</a>

In case the subject is not enough and you want to add something else in the email's content, you can do it with the help of the next code:

html<a href="mailto:someone@example.com?subject=Questions&body=Write here if you have questions" title="" >Questions here</a>