Mailto is a special type of HTML link. When the client opens this links, it will open the default mail client you have in your computer. The web browser requires a default e-mail client software installed on his computer in order to activate the e-mail client.
The mailto link must have the mailto:
prefix. This prefix will tell the browser that the client is trying to send and email and there for, open the email client. Followed by the prefix, it is required to input the email of the recivient.
e.g. mailto:example@example.com
There are also some extra parameter that can be inserted into the URL link. The first parameter should be prefixed with ?
and the rest of parameters with &
.
here is a list of possible parameters:
Parameter | Description | Example |
---|---|---|
cc | carbon copy e-mail address | cc=example@example.com |
bcc | blind carbon copy e-mail address | bcc=example@example.com |
subject | subject of e-mail | subject=hello |
body | body of e-mail | body=body text |
e.g. mailto:example@example.com?subject=hello&body=this is my new email