Creating an HTML table in Javascript for use in email?

I read a message that was 4 years old and it could not pass the HTML to the body of the email.

I would like to know if this is true?

My current JavaScript:

 TableF = '<table style="font-size: 1.0em; border-collapse: collapse;">';
        TableF += '<tr>';
        TableF += '<td>IP Addresses</td>';
        TableF += '<td>Hop Number</td>';
        TableF += '<td>Average MS</td>';
        TableF += '</tr>';
        TableF += '<tr>';
        for(var i = 0; i < iparray.length; i++){
        TableF +=  '<td>'+ iparray[i]+'</td><td>' + hopnum[i]+'</td><td>' + msarray[i]+'</td>';
        }
        TableF += '</tr></table>';
}

And suffice it to say that this does not convert to a table when a link is used mailto, it simply writes HTML as plain text.

+5
source share
1 answer

You cannot specify the HTML content that will be sent to the email application using the link mailto, as it is the โ€œlowest common denominatorโ€ for pre-populating email.

( Outlook, gmail, thunderbird ..), .

, ( ), mailto.

+4

All Articles