jQuery Mailto / Outlook Hack
$('body').on('click','.send-email',function(e){
e.preventDefault();
const windowRef = window.open($(this).attr("href"),'_blank');
windowRef.focus();
setTimeout(function(){
if(!windowRef.document.hasFocus()) {
windowRef.close();
}
}, 500);
});
last updated november 2018