I am using JavaScript mailto function to fill an email body with custom text.
I can add text to the email but the signature doesn't show up.
Is there any way to send a custom signature with an image using mail-to function? Or is there any way to insert an HTML image in the body when using the mail-to function?
Sample code:
var message = "text of message";
var mailLInk = "mailto:sam@example.com?subject=subject&body=" + message;
document.location.href = mailLink;
Section 2 of RFC 2368 says that the body
field is supposed to be in text/plain
format, so you can't do HTML.
However even if you use plain text it's possible that some modern mail clients would render the resulting link as a clickable link anyway, though.