mailto body line break | multiple lines example code

Use Encoding %0D%0A in mailto body to line break. This is the only valid way to generate a line break of content/text in the body.

  1. Use a single body parameter within the mailto string
  2. Use %0D%0A as newline

Note: You cannot use HTML tags <br> in body of mailto.

Example of mailto link with body multiple lines (insert break)

Example code of HTML mailto multiple lines.

<!DOCTYPE html>
<html>
<body>
 
    <a href="mailto:[email protected]?subject=Suggestions&body=name:%0D%0Aemail:">
    Send Email</a>​
 
 
</body>
</html>

Output:

 mailto link with body multiple lines (insert break)

Do comment if you have any questions or suggestion on this topic.

Note: The All HTML Examples codes are tested on the Firefox browser and the Chrome browser.

OS: Windows 10

Code: HTML 5 Version


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.