$('#id-popover-social-container ul').append('<li class="share-mail"><a class="btn btn-xs btn-default" href="mailto:?subject=I have shared a document with you: '+embedConfig.docTitle+'&body=I have shared a document with you: '+embedConfig.shareUrl+'"><span class="glyphicon glyphicon-envelope"></span>Email</a></li>');
window.open('mailto:?subject=I have shared a document with you: '+embedConfig.docTitle+'&body=I have shared a document with you: '+embedConfig.shareUrl+'"','_self');