I've been working on creating an email sender using the following code:
var link = "mailto:example@gmailcom"
+ "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c0ffa3a3fdadb9838380a7ada1a9aceea3afad">[email protected]</a>"
+ "&subject=" + encodeURIComponent("Order")
+ "&body=" + encodeURIComponent("Some random send string <br>Some more send string");
window.location.href = link;
However, I'm having trouble with the
tag not functioning as expected. Any suggestions on how to create a line break?