Hi
I have created below JS function where in the body section i have HTML element and when function gets call on button click , outlook gets open and i see HTML formatted table with data.
but it work only in IE not in other browser.
Can you please let me know any alternate solution where i can work with all the browser and HTML tags also work in parallel.
function fn1(a,b,c,d,e,f,g,h)
{
//alert(e);
var outlookApp = new ActiveXObject("Outlook.Application");
var nameSpace = outlookApp.getNameSpace("MAPI");
mailFolder = nameSpace.getDefaultFolder(6);
mailItem = mailFolder.Items.add('IPM.Note.FormA');
mailItem.Subject = "Failure Analysis report request for ALR assessment";
mailItem.To = "";
mailItem.HTMLBody = "Dear Analysis team,<br><br>Please share analysis report for below mentioned failure,<br><br><br><br><table border=4 width='1000' style='text-align:center;border-collapse: collapse'> <tr><td colspan='7' style='font-weight: bold'>"+h +" FAILURE - "+c+"</td></tr><tr style='font-weight: bold'><td>PART NUMBER</td><td>DATE/TIME</td><td>LINE</td><td>DMC NUMBER</td><td>NO OF TIMES PART FAILED</td><td>DECISION</td><td>REMARKS</td></tr><tr><td>"+a+"</td><td>"+b+"</td><td>"+c+"</td><td>"+d+"</td><td>"+e+"</td><td>"+f+"</td><td>"+g+"</td></tr> </table>";
mailItem.display(0);
}