mailto HTML code, syntax and generator

mailto HTML code, syntax and generator - mailto.co.uk

What can you do with mailto:?

Create a link that when clicked will start an email with any or all of the following information pre-completed by you:

· The email address in the “To:” address box
· The email address in the “Cc:” address box
· The email address in the “Bcc:” address box
· Text in the “Subject” field
· Text in the main “body” of the email


(1.0) Adding the email address into the To, Cc and Bcc boxes:
(1.1)
Example with the address in the ‘To’ box
(1.2)
Example with the address in the ‘To’ box and ‘Cc’ box:
(1.3)
Example with the address in the ‘To’ box, ‘Cc’ box and ‘Bcc’ box
(1.4)
Example with multiple addresses in the ‘To’ box:
(1.5)
You can do the same in the 'CC' and 'BCc' box also:
(2.0)
Adding the Subject line
(2.1)
Adding the subject line without an email address
(2.2)
Adding the subject line with an email address
(3.0)
Adding body text
(3.1)
Adding body text to the email without an email address
(3.2)
Adding the body text of the email with an email address
(3.3)
Formatting by adding a new line
(3.4)
Formatting by adding a double break
(4.0)
Creating a super link!
(5.0) Mailto.co.uk Generator


Okay, let’s see some examples, each shown in three ways:

A: Working example, as if it was in an email or webpage

B: The code as a link if you were adding links in a page or email

C: The code if you wanted to edit your HTML page raw code

(1.0) Adding the email address into the To, Cc and Bcc boxes:
(1.1) Example with the address in the ‘To’ box

» Example!:
This is an example mailto




(1.2) Example with the address in the ‘To’ box and ‘Cc’ box:

» Example!:
This is an example mailto




(1.3) Example with the address in the ‘To’ box, ‘Cc’ box and ‘Bcc’ box

» Example!:
This is an example mailto




(1.4) Example with multiple addresses in the ‘To’ box:

To do this you just add a semicolon immediately after each individual address. You can also use semicolon’s to separate multiple addresses in the Cc and Bcc box.

» Example!
This is an example mailto




(1.5) You can do the same in the 'CC' and 'BCc' box also:

» Example!
This is an example mailto




Okay, you can now add an email address into the ‘To’ box, ‘Cc’ box and the ‘Bcc’ box. Now let’s look at adding subject lines.

# top


(2.0) Adding the Subject line
(2.1) Adding the subject line without an email address

» Example!
This is an example mailto




(2.2) Adding the subject line with an email address

Example!
This is an example mailto




Okay, that’s adding the subject line covered! Now let’s add body text.

# top


(3.0) Adding body text
(3.1) Adding body text to the email without an email address


» Example!
This is an example mailto




(3.2) Adding the body text of the email with an email address

» Example!
This is an example mailto




(3.3) Formatting by adding a new line

You can format the text to go into a new line by adding some code at the end of the sentence - adding %0A will give you a new line.

» Example!
This is an example mailto




(3.4) Formatting by adding a double break

Add two
together to create a double break or as many as you need.

Okay, that’s the body text covered. You can now launch an email using mailto: with the body text both with and without an email address!

# top


(4.0) Creating a super link!

Finally, let’s put it all together and create a link with addresses in the ‘To’, ‘Cc’ and ‘Bcc’ boxes, plus adding the subject line and a block of text in the mail body of the email…

» Example!
This is an example mailto




# top


(5.0) Mailto Generator

To:
Cc:
BCc:
Subject
Body
Link Text:
 
  Show test
HTML:
Email:
# top
A mailto: is a link in a website or email that, when clicked, will open a new email with some of the information pre-completed by you – making it easier for people to contact you.

The mailto: command is very simple to use as most email packages and website software will do all of the work for you. This guide will show you how to create basic and advanced mailto: links.

The total length of your mailto: can include multiple addresses, subject lines and body text, however the amount read depends on the users email client.

©2012