JSFiddle - React, Tailwind, and code Playground
by codef0rmer
HTML
<textarea id="myText">
Lorem ipsum...
</textarea>
<button onclick="sendMail(); return false">Send</button>
<script>
function sendMail() {
var link = "mailto:[email protected]"
+ "&subject=" + escape("This is my subject")
+ "&body=" + escape(document.getElementById('myText').value);
window.location.href = link;
}
</script>