问题
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