mailto: HTML e-mail link
mailto: HTML e-mail link, what is it, how to create, examples and code generator.
What is mailto link
Mailto link is a type of HTML link that activates the default mail client on the computer for sending an e-mail.
The web browser requires a default e-mail client software installed on his computer in order to activate the e-mail client.
If you have Microsoft Outlook, for example as your default mail client, pressing a mailto link will open a new mail window.
How to create mailto link in HTML
The mailto link is written like regular link with extra parameters inside the href attribute:
<a href="mailto:name@email.com">Link text</a>
parameter description mailto:name@email.com e-mail recipient address cc=name@email.com carbon copy e-mail address bcc=name@email.com blind carbon copy e-mail address subject=subject text subject of e-mail body=body text body of e-mail ? first parameter delimiter & other parameters delimiter mailto examples
Mail to email address
<a href="mailto:name@rapidtables.com">Send mail</a>
The code will generate this link:
Pressing the above link will open a new mail window:
Mail to email address with subject
<a href="mailto:name@rapidtables.com?subject=The subject of the mail">Send mail with subject</a>
The code will generate this link:
Pressing the above link will open a new mail window:
Mail to email address with cc, bcc, subject and body
<a href="mailto:name1@rapidtables.com?cc=name2@rapidtables.com&bcc=name3@rapidtables.com&subject=The subject of the email&body=The body of the email">Send mail with cc, bcc, subject and body</a>
The code will generate this link:
Send mail with cc, bcc, subject and body
Pressing the above link will open a new mail window:
Mailto link code generator


