Quantcast
Channel: HTML – Code Chewing
Viewing all articles
Browse latest Browse all 21

Add subject & body text to HTML mailto email

$
0
0

If you want to add more control and customisation over the mailto HTML href link, you can add subject and body text.

Here’s an example:

<a href="mailto:contact@codechewing.com?subject=Website Enquiry&body=Hello!">
  Email Us
</a>

You can also add new lines to the body text with %0A. Like so:

<a href="mailto:contact@codechewing.com?subject=Website Enquiry&body=Hello!%0AI'm on a new line!">
  Email Us
</a>

Viewing all articles
Browse latest Browse all 21

Trending Articles