I want to embed an image in the mail body using javascript and jquery:
function SendEmail(StudyMail) {
     var emailBodyContent = "<span> " + greating + "</span> ,\n\n";
     emailBodyContent += " <img src=\"images/1.png\" />";
      DivMailBody.html(emailBodyContent);
        var body = DivMailBody.text();
        var contents = "".concat('mailto:' + StudyMail, '?subject= A new study', '&body=', encodeURIComponent(body));
        var pwin = window.open(contents, "_blank", "toolbar=yes, scrollbars=no, resizable=no, width=100, height=100");
        try {
            setTimeout(function () {
                pwin.close();
            }, 100);
        } catch (e) {
        }
}
it sends the mail without the image.
 
     
    