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.
- Use a single
body
parameter within themailto
string - 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:
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