I have a javascript function that constructs an email and populates the address, subject and body with some contents.
Is there any way i can style some of the elements within the body?
function createEmail() {
var email = 'mailto:' + emailAddr +
'&subject=Postage: ' + cusPostage +
'&body=Products:' +
'Spoons: ' + spoonsQty +
'<h3 style="color: #1c70db;">Hello World!</h3>';
return email.replace(/\?/g, '');
}
Ive tried via:
'<h3 style="color: #1c70db;">Hello World!</h3>'
However when the email loads, i get to:
Spoons: 1
<h3 style=
Using Microsoft Outlook
Hello World!
'; – Aju John Mar 16 '16 at 09:29