<?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: Adding data from multiple data fields to body of an email</title><link>https://www.infopathdev.com:443/forums/thread/37914.aspx</link><pubDate>Fri, 30 Jan 2009 18:53:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37914</guid><dc:creator>nucel</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37914.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=37914</wfw:commentRss><description>&lt;p&gt;Thank you so much for the response!&amp;nbsp; While I have figured out how to insert the fields that I need using your example here, the problem I am having now is how to put them each on a separate line of the email instead of all running together on one line.&amp;nbsp; Any ideas?&amp;nbsp; Thanks!&lt;/p&gt;</description></item><item><title>Re: Adding data from multiple data fields to body of an email</title><link>https://www.infopathdev.com:443/forums/thread/37810.aspx</link><pubDate>Thu, 29 Jan 2009 02:16:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37810</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37810.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=37810</wfw:commentRss><description>&lt;p&gt;Hello Welcome to the Forums,&lt;/p&gt;
&lt;p&gt;You can add the data to body of the email as per your requirement. Which data you want to add in that body? Is that data from the form or any hard coded text?&lt;/p&gt;
&lt;p&gt;You can write the below line to get the data from the form and hard coded text,&lt;/p&gt;
&lt;p&gt;bstrBody=&amp;quot;Email Body:&amp;quot; + XDocument.DOM.selectSingleNode(&amp;quot;my:IFSP/my:Plan/my:FITEligibility&amp;quot;).text + &amp;quot;entered&amp;quot;;&lt;/p&gt;</description></item><item><title>Adding data from multiple data fields to body of an email</title><link>https://www.infopathdev.com:443/forums/thread/37797.aspx</link><pubDate>Wed, 28 Jan 2009 18:53:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37797</guid><dc:creator>nucel</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37797.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=37797</wfw:commentRss><description>&lt;p&gt;I am not using a &amp;quot;Submit&amp;quot; function in my form.&amp;nbsp; Rather, I am generating an email based upon an &amp;quot;if&amp;quot; statement based on other criteria.&amp;nbsp; And while the action is working, I am now unclear as to how to add specific information from the form to the body of the email so my users do not have to open the attachment unless they really need to.&amp;nbsp; Here is the code I have so far in Java Script:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;function msoxd_my_FITEligibility::OnAfterChange(eventObj)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;var Eligibility = XDocument.DOM.selectSingleNode(&amp;quot;my:IFSP/my:Plan/my:FITEligibility&amp;quot;).text; &lt;/p&gt;
&lt;p&gt;if (Eligibility&amp;lt;5) &lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&amp;nbsp;bstrTo=someuser@mail.com;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;bstrCC=&amp;quot;&amp;quot;;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;bstrBCC=&amp;quot;&amp;quot;; &lt;/p&gt;
&lt;p&gt;bstrSubject=&amp;quot;EI Eligibility Data&amp;quot;;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;bstrBody=&amp;quot;&amp;lt;this is where I want data from the form to appear&amp;gt;&amp;quot;;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;XDocument.UI.ShowMailItem(bstrTo, bstrCC, bstrBCC, bstrSubject, bstrBody);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you in advance!&lt;/p&gt;</description></item></channel></rss>