<script> function openOutlook() { var email = 'xxxxxx@mail.com'; var subject = 'Test Mail'; var emailBody = document.getElementById("content").innerHTML; window.location = "mailto:" + email + "?subject=" + subject + "&body=" + emailBody; } function openOutlookwithFormattedContent() { var outlookAXO = new ActiveXObject("Outlook.Application"); var nameSpace = outlookAXO.getNameSpace("MAPI"); mailFolder = nameSpace.getDefaultFolder(6); mailItem = mailFolder.Items.add('IPM.Note.FormA'); mailItem.Subject = "Test Mail"; mailItem.To = "TestMail@gmail.com"; mailItem.HTMLBody = document.getElementById("content1").innerHTML; mailItem.display(0); } </script>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)