<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: MailEnvelope</title><link>https://www.infopathdev.com:443/forums/thread/48730.aspx</link><pubDate>Fri, 06 Nov 2009 05:38:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48730</guid><dc:creator>chhaya singh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48730.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=48730</wfw:commentRss><description>&lt;p&gt;I m bit confused by your question that exactly what do you want to achive? But If you want to send your form to some recipent and your infopath form as a body then you can use - Data connection i.e. Submit via email.&lt;/p&gt;</description></item><item><title>MailEnvelope</title><link>https://www.infopathdev.com:443/forums/thread/48719.aspx</link><pubDate>Thu, 05 Nov 2009 23:56:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48719</guid><dc:creator>krishna</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48719.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=48719</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am trying to send an email from the infopath form as a body of the email with all&amp;nbsp;the other email features.&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;added a field to the form for&amp;nbsp;email address(Text). and then I added a button. When I click the button, it has take the user to outlook with the infopath form as a body of the email and email address field populate on the To field on the outloook&lt;/p&gt;
&lt;p&gt;Button has following code:&lt;/p&gt;
&lt;p&gt;XDocument.DOM.setProperty(&amp;quot;SelectionNamespaces&amp;quot;, &amp;#39;xmlns:my=&lt;a href="http://schemas.microsoft.com/office/infopath/2003/myXSD/2009-11-05T21:13:45"&gt;http://schemas.microsoft.com/office/infopath/2003/myXSD/2009-11-05T21:13:45&lt;/a&gt; &amp;#39;)&lt;/p&gt;
&lt;p&gt;function CTRL2_5::OnClick(eventObj) &lt;/p&gt;
&lt;p&gt;{ var test = Application.ActiveWindow.MailEnvelope; &lt;/p&gt;
&lt;p&gt;test.To = getNode(&amp;quot;/my:myFields/my:field1&amp;quot;).text; &lt;/p&gt;
&lt;p&gt;test.Visible = true; }&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have only one field on the form which is field1 and user has to give email address in the text box.&lt;/p&gt;
&lt;p&gt;Please let me know if I ammissng something here.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>