I tried doing a search but what I found did not seem to work for me. I am trying to populate the intro field in an email created by my form but info path dosen't seem to like my code. Error Object expected.
<code>
var oEnvelope = Application.ActiveWindow.MailEnvelope;
oEnvelope.Subject = "VPN Token Replacement";
oEnvelope.Intro = "test"; // dosen't work
oEnvelope.To = XDocument.DOM.selectSingleNode("//my:DirectorMail").text;
oEnvelope.Visible = true;
</code>
any help would be greatly apreciated