我写了java脚本代码来打开邮件客户端,同时我预先填充到cc,主题和body.But这里的问题是身体的一部分,我需要一些html styles.I写一样,如果你观察身体元件值我给html元素作为body.Please的部分看到的附加的图像是outlook.Those html元素的身体不converting.Please看到下面的如下HTML元素不转换在Outlook体
<html>
<body>
<input id="sendemail" type="submit" value="Submit">
</body>
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<script>
$("#sendemail").click(function() {
alert("Hai");
try {
var email='[email protected]';
window.location="mailto:"+email+"?subject=Subject&**body**="+<html>Please attach your invitation letter to this email<b><i>Primary Contact</i></b><br/>First name:</html>;
}
catch(err){
alert(err);
}
});
</script>
</html>
外观形象
因此不可能将html代码作为Outlook邮件正文的一部分。是否有任何其他解决方法可以满足我的要求。如果可能,您可以提出建议。 – user3663712
请参阅[如何从JavaScript发送电子邮件](http://stackoverflow.com/questions/7381150/how-to-send-an-email-from-javascript)。 –