I have an InfoPath that contain this code foe get the userName:
function XDocument::OnLoad(eventObj)
{
var objNetwork = new ActiveXObject("WScript.network");
var currentLogin=objNetwork.UserDomain+"\\" +objNetwork.UserName ;
}
Is there any option to get the user email????