how to add html in a email body using javascript? -
i have sent confirmation email users. , on clicking of link, want open default email client , add html body tag.
var subject = transaction no: +': ' + $('#confirmationnumber').text()+ ' confirmed'; var emailbody = $('#confirmation').html(); $(this).attr('href','mailto:'+useremail+'&subject=' + subject +'&body='+ emailbody); it want html in 'emailbody' appended body html. displays me entire html tags instead.
is there way can append html in body ?
the answer short unfortunate:
no.
when using mailto:-links, can specify text, not html. if user’s mail client composes mail message using html, body text inserted text.
there’s nothing can web page.
Comments
Post a Comment