JSFiddle - React, Tailwind, and code Playground

by GustavoSatheler

HTML

<body>
<a href='javascript:OpenOutlookNewEmail()' >email</a>
</body>
<BR>
<BR>
FUNCIONA SOMENTE NO INTERNET EXPLORER

JavaScript

function OpenOutlookNewEmail()
{
try
{

var outlookApp = new ActiveXObject("Outlook.Application");
var nameSpace = outlookApp.getNameSpace("MAPI");
mailFolder = nameSpace.getDefaultFolder(6);
mailItem = mailFolder.Items.add('IPM.Note.FormA');
mailItem.Subject="Me";
mailItem.To = "[email protected]";
mailItem.HTMLBody = "<b>ME</b>";
mailItem.display (0); 
}
catch(e)
{
alert(e);
// act on any error that you get
}
}