<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Putting Form Field Data in Envelope Fields</title><link>https://www.infopathdev.com:443/forums/thread/57174.aspx</link><pubDate>Thu, 22 Jul 2010 00:19:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57174</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57174.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=57174</wfw:commentRss><description>&lt;p&gt;Hi Bo Nesbit,&lt;/p&gt;
&lt;p&gt;Why not just use the out-of-box Email data cnnector? Tools-&amp;gt;Data Connections-&amp;gt;Add-&amp;gt;E-mail-&amp;gt;... ? That&amp;#39;s a lot easier and you don&amp;#39;t have to maintain code. &lt;/p&gt;
&lt;p&gt;But, if you really want code, you can definitely do the same thing. There are lots of posts in this forum and information in the 2003 SDK (see InfoPath Resources link on left) that shows how to access the XML DOM from code. &lt;/p&gt;
&lt;p&gt;May your path be garden variety,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Putting Form Field Data in Envelope Fields</title><link>https://www.infopathdev.com:443/forums/thread/57155.aspx</link><pubDate>Wed, 21 Jul 2010 13:28:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57155</guid><dc:creator>BoNesbit</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57155.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=57155</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m using Infopath 2003 SP3. I&amp;#39;ve written the following jscript code that is executed by a button I put on my form that opens the mail envelope and &amp;quot;embeds&amp;quot; the form into an email being sent by Exchange 2007.&lt;/p&gt;
&lt;p&gt;ffunction Send_Form::OnClick(eventObj) &lt;br /&gt;{&lt;br /&gt;&amp;nbsp;{ &lt;br /&gt;try { var oEnvelope = Application.ActiveWindow.MailEnvelope; &lt;br /&gt;oEnvelope.To =&amp;nbsp;&amp;quot;my.manager@bcbssc.com ; &lt;br /&gt;oEnvelope.CC = &amp;quot;&lt;a href="mailto:direct.report@bcbssc.com"&gt;direct.report@bcbssc.com&lt;/a&gt;; &lt;a href="mailto:your.email@bcbssc.com"&gt;your.email@bcbssc.com&lt;/a&gt;&amp;quot;; &lt;br /&gt;oEnvelope.Subject = &amp;quot;Travel Request for I/S&amp;quot;; &lt;br /&gt;oEnvelope.Visible = true; &lt;br /&gt;} &lt;br /&gt;catch(ex) &lt;br /&gt;{&lt;br /&gt;&amp;nbsp;XDocument.UI.Alert(ex.description); &lt;br /&gt;}&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Now I want to grab specific fields in the form such as the To: field and CC: field and include them in the Envelope.To and Envelope.CC fields. I&amp;#39;d also like to concatenate the subject line with text and info from a field also in the form. Is this possible? &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>