JSFiddle - React, Tailwind, and code Playground
HTML
<a id = 'emailoff' href = "" target = "_blank">
<div id= "btn1">
<h2 id = "enter">Send Email</h2>
</div>
</a>
CSS
#btn1 {
background-color: black;
width: 100px;
height: 100px;
JavaScript
$('#btn1').click(function(){
$("#emailoff").attr("href", "mailto:" +
"?subject=Your ThinOptics glasses" +
"&body=To get your new ThinOptics glasses simply click this link and pick the case and color you like best. You'll get free shipping on your order. \n"+
" WWw.Thinoptics.Com/[email protected] \n" +
"\n Enjoy")
});