Skip to content

mailto body line break | multiple lines example code

  • by

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>
    <a href="mailto:[email protected]?subject=Suggestions&body=name:%0D%0Aemail:">
    Send Email</a>​


 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

Discover more from Tutorial

Subscribe now to keep reading and get access to the full archive.

Continue reading