How to use mailto:
protocol to attache a file
https://codepen.io/Su1312/pen/bGEQgKv
function sendMail() {
var link = "mailto:[email protected]"
+ "[email protected]"
+ "&subject=" + escape("This is my subject")
+ "&body=" + escape(document.getElementById('myText').value)
;
window.location.href = link;
}