Email Link Properties

On many pages HTML we find links to an e-mail made with the mailto. Once we click on them and if we have an email program installed, a window will appear to send a message to the linked address.

The code we need to do this is the following line of code:

      
         [email protected]
      

But we can also pre-format the different fields of the message:

  • Subject (subject)
  • Copy (cc)
  • Blind Copy (bcc)
  • Body of the message (body)

To add the fields to the link we will do it as follows:

      
         [email protected]
      

So, if we want to add the subject of the message we would have the following line of code:

      
         [email protected]
      

If we want to link several fields we will do it in the following way:

      
         [email protected]
      

This is how we can put a subject and send it as a copy to someone:

      
         [email protected]

Leave a Comment