Learn how to use the Mailto HTML protocol for creating clickable email links on your web page. There are some advanced features of HTML Mailto syntax which you should learn. I have shared Mailto Syntax example this post so that you can learn them quickly.

se HTML Mailto Link Syntax in Webpage

Mailto syntax lets you create directly clickable email links which you can use while creating any web page. The links that you will create using Mailto Syntax support modern day web email clients like Gmail on your browser.

Clicking on the email link will directly open Gmail’s compose a new email for you on your browser new tab. Otherwise, it will open the default mail client which you have installed on your computer (like Mozilla Thunderbird) to compose a new email.

There’s a possibility if you are reading this post then you already know about HTML Mailto function. And how you to use it for quickly linking to an email id on a web page. But, as I have already told you earlier there are some advanced features which you don’t know about. You can learn them from below.

Using the HTML Mailto Syntax

Mailto Syntax Examples

You can check below for the real examples of the Mailto syntax’s advanced features. You can test these directly by typing any one of the following syntaxes into your browsers address bar.

  • Send an email to Single Recipient

<a href=“mailto:[email protected]”>

  • Send an email to Multiple Recipients (using a Comma)

<a href=“mailto:[email protected],[email protected]”>

  • Send an email to Someone and Add Others to CC: list and BCC: list to other people.

<a href=“mailto:[email protected][email protected]&[email protected]”>

  • Send an email to Someone with the subject “Hello World.”

<a href=”mailto:[email protected]?subject=Hello%20World”>

  • Send an email to Someone with the subject “Hello World” and some text in the body of the email message.

<a href=”mailto:[email protected]?subject=Hello%20World”&body=Have%20a%20good%20day″>

Note: While using these, you need to remember few things – you can only use one “?” character and you have to use %20 for the space character and %0A to add a line break in the body text. With these things in your mind, you are ready to go.

In case you want to share your opinion about this post, you can do that by commenting below. Also, feel free to share your thoughts about HTML mailto syntax, Thanks for reading.

  • Was this Helpful ?
  • YesNo
Thanks for Reading! This article has been written by our editorial staff. Editorial Staff at Most Useful Tricks is a team of Tech experts led by Noah Peterson.

2 COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here