E mail link html

Here is an example of an HTML email link:

<a href="mailto:[email protected]">Send an email to [email protected]</a>

This will create a link that, when clicked, will open the user's default email client with the address [email protected] pre-filled.

You can also add additional attributes to the link, such as:

Here is an example of an HTML email link with additional attributes:

<a href="mailto:[email protected]?subject=Hello%20from%20HTML&body=This%20is%20the%20body%20of%20the%20email&[email protected]&[email protected]">Send an email to [email protected]</a>

This will create a link that, when clicked, will open the user's default email client with the address [email protected], subject line Hello from HTML, body This is the body of the email, CC recipients [email protected], and BCC recipients [email protected].

Note that the %20 is used to encode spaces in the subject and body of the email.

You can also use the mailto protocol to create a link that opens a new email composition window, without sending the email immediately. For example:

<a href="mailto:[email protected]?subject=Hello%20from%20HTML&body=This%20is%20the%20body%20of%20the%20email&[email protected]&[email protected]&new=1">Send an email to [email protected]</a>

This will create a link that, when clicked, will open a new email composition window with the address [email protected], subject line Hello from HTML, body This is the body of the email, CC recipients [email protected], and BCC recipients [email protected].