我想使用javascript和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) {
}
}
它发送不带图片的邮件。
答案 0 :(得分:0)