Send HTML code to Body of email application

时间秒杀一切 提交于 2020-01-06 08:00:55

问题


Is there a way I can use mailto: or JavaScript to send a string containing HTML code to the body of an email message so that the HTML will render? This just renders as text and doesn't actually display an image (same for a mailto: link):

window.open('email@email.com&Subject=Test&Body=<img src="MyImageURL" />');

In the real code, I'm using the full URL of the image, with the http://www..., and also, I confirmed that the email type is HTML and not plain text.

This is a project requirement, to allow someone to send a formatted message through their own email rather than us sending it server-side on their behalf through our SMTP server.


回答1:


no, there is no way to do this using javascript or mailto. if you wanna read all features to mailto protocol please check this page.



来源:https://stackoverflow.com/questions/17412837/send-html-code-to-body-of-email-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!