<?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: Submit Form to email body as plain text?</title><link>https://www.infopathdev.com:443/forums/thread/25734.aspx</link><pubDate>Thu, 17 Jan 2008 17:15:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25734</guid><dc:creator>ScottD</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25734.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=25734</wfw:commentRss><description>&lt;p&gt;Anyway to change the Font or Bold in the plain text in the body?&lt;/p&gt;
&lt;p&gt;this is infopath 2003&lt;/p&gt;</description></item><item><title>Re: Submit Form to email body as plain text?</title><link>https://www.infopathdev.com:443/forums/thread/25320.aspx</link><pubDate>Fri, 28 Dec 2007 14:36:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25320</guid><dc:creator>bobspearing</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25320.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=25320</wfw:commentRss><description>&lt;p&gt;Matt&lt;/p&gt;
&lt;p&gt;Thanks, that&amp;#39;s very helpful - I can&amp;#39;t believe it was that simple.&lt;br /&gt;Anyway, this may not be very sophisticated but it works fine:&lt;/p&gt;
&lt;p&gt;function SendEmailBtn::OnClick(oEvent)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;createEmail();&lt;br /&gt;}&lt;br /&gt;function createEmail()&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;var xmlmanager = XDocument.DOM.selectNodes(&amp;quot;/ar:absenceRequest/ar:manager/ar:name&amp;quot;);&lt;br /&gt;&amp;nbsp;var xmlname;&lt;br /&gt;&amp;nbsp;var xmlTitle = XDocument.DOM.selectSingleNode(&amp;quot;/ar:absenceRequest/ar:contact/ar:name/ar:singleName&amp;quot;);&lt;br /&gt;&amp;nbsp;var copy1 = XDocument.DOM.selectSingleNode(&amp;quot;/ar:absenceRequest/ar:contact/ar:name/my:Contact1&amp;quot;);&lt;br /&gt;&amp;nbsp;var copy2 = XDocument.DOM.selectSingleNode(&amp;quot;/ar:absenceRequest/ar:contact/ar:name/my:Contact2&amp;quot;);&lt;br /&gt;&amp;nbsp;var rgRecipients = new Array();&lt;br /&gt;&amp;nbsp;while (xmlname = xmlmanager.nextNode())&lt;br /&gt;&amp;nbsp;&amp;nbsp;rgRecipients.push(getNodeValue(xmlname.selectSingleNode(&amp;quot;ar:singleName&amp;quot;)));&lt;/p&gt;
&lt;p&gt;&amp;nbsp;try&lt;br /&gt;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;var oEnvelope = XDocument.View.Window.MailEnvelope;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;oEnvelope.To = rgRecipients.join(&amp;quot;; &amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;oEnvelope.Subject = getNodeValue(xmlTitle) + &amp;quot; - &amp;quot; + &amp;quot;PTO Request&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;oEnvelope.CC = getNodeValue(copy1) + &amp;quot;;&amp;quot; + getNodeValue(copy2);&lt;br /&gt;&amp;nbsp;&amp;nbsp;oEnvelope.Visible = true;&lt;br /&gt;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;catch (ex)&lt;br /&gt;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;XDocument.UI.Alert(ex.description);&lt;br /&gt;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;
&lt;p&gt;Cheers - Bob&lt;/p&gt;</description></item><item><title>Re: Submit Form to email body as plain text?</title><link>https://www.infopathdev.com:443/forums/thread/25316.aspx</link><pubDate>Thu, 27 Dec 2007 21:35:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25316</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25316.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=25316</wfw:commentRss><description>&lt;p&gt;Hi Bob,&lt;/p&gt;
&lt;p&gt;Judging from the following blog, it looks like it&amp;#39;s just oEnvelope.CC.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.msdn.com/infopath/archive/2004/08/17/216172.aspx"&gt;http://blogs.msdn.com/infopath/archive/2004/08/17/216172.aspx&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Submit Form to email body as plain text?</title><link>https://www.infopathdev.com:443/forums/thread/25300.aspx</link><pubDate>Wed, 26 Dec 2007 16:42:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25300</guid><dc:creator>bobspearing</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25300.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=25300</wfw:commentRss><description>&lt;p&gt;Patrick&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve&amp;nbsp;taken Julie&amp;#39;s solution (I copied the button to my absence request form and played around with it until it worked) and I can get the &amp;quot;To:&amp;quot; field populated. Now I need to figure out the &amp;quot;CC&amp;quot; field, I need to add two email contacts - as in the standard Absence request form, for &amp;quot;contacts while away&amp;quot;&lt;/p&gt;
&lt;p&gt;This is what I have so far -&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;function createEmail()&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;var xmlmanager = XDocument.DOM.selectNodes(&amp;quot;/ar:absenceRequest/ar:manager/ar:name&amp;quot;);&lt;br /&gt;&amp;nbsp;var xmlname;&lt;br /&gt;&amp;nbsp;var xmlTitle = XDocument.DOM.selectSingleNode(&amp;quot;/ar:absenceRequest/ar:title&amp;quot;);&lt;br /&gt;&amp;nbsp;var rgRecipients = new Array();&lt;br /&gt;&amp;nbsp;while (xmlname = xmlmanager.nextNode())&lt;br /&gt;&amp;nbsp;&amp;nbsp;rgRecipients.push(getNodeValue(xmlname.selectSingleNode(&amp;quot;ar:singleName&amp;quot;)));&lt;/p&gt;
&lt;p&gt;&amp;nbsp;try&lt;br /&gt;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;var oEnvelope = XDocument.View.Window.MailEnvelope;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;oEnvelope.To = rgRecipients.join(&amp;quot;; &amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;oEnvelope.Subject = getNodeValue(xmlTitle);&lt;br /&gt;&amp;nbsp;&amp;nbsp;oEnvelope.Visible = true;&lt;br /&gt;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;catch (ex)&lt;br /&gt;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;XDocument.UI.Alert(ex.description);&lt;br /&gt;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;If anybody can tell me how to add the &amp;quot;CC:&amp;quot; , that would be a great help?&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;Bob&lt;/p&gt;</description></item><item><title>Re: Submit Form to email body as plain text?</title><link>https://www.infopathdev.com:443/forums/thread/25297.aspx</link><pubDate>Mon, 24 Dec 2007 18:19:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25297</guid><dc:creator>bobspearing</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25297.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=25297</wfw:commentRss><description>&lt;p&gt;Ok - I got it sorted, just working on the cc: field now&lt;/p&gt;
&lt;p&gt;Excellent!&lt;/p&gt;</description></item><item><title>Re: Submit Form to email body as plain text?</title><link>https://www.infopathdev.com:443/forums/thread/25294.aspx</link><pubDate>Mon, 24 Dec 2007 11:10:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25294</guid><dc:creator>bobspearing</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25294.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=25294</wfw:commentRss><description>&lt;p&gt;Julie&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t quite figure what you mean by delete everything and copy a form on top.&lt;/p&gt;
&lt;p&gt;Are you refering to deleting the code or the design page?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Bob&lt;/p&gt;</description></item><item><title>Re: Submit Form to email body as plain text?</title><link>https://www.infopathdev.com:443/forums/thread/22246.aspx</link><pubDate>Thu, 09 Aug 2007 13:15:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22246</guid><dc:creator>justindevine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22246.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=22246</wfw:commentRss><description>&lt;p&gt;Matt,

I see how this example for formatting text works, however I am a bit new to XML.&amp;nbsp; if you are using selectNodes() instead of selectSingleNode to select all values in a repeating table, I would like to know if there is any way to grab entire rows.&amp;nbsp; For example if you had a table with three columns, clearly the xml knows which 3 values are the first record, second record etc.&amp;nbsp; Can you help me identify how to grab whole rows (records) in a repeating table?&amp;nbsp; I can work on the formatting myself, its grabbing multiple values by their row that is stumping.&amp;nbsp; I am sending this in an email (got that part figured out).&amp;nbsp; I drew a example repeating table below.&amp;nbsp; My goal is to print into the email&amp;nbsp; foo, bar, hat.&amp;nbsp; The real situation is that I have a repeating table with &amp;quot;comments&amp;quot; each one has a number, comment text, and a timestamp, I want to get them into the email just like they appear in the repeating table.&amp;nbsp; Any ideas?&amp;nbsp; Thanks for anything you can provide.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;-Justin&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp;  B&amp;nbsp;&amp;nbsp;  C&lt;br /&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f&amp;nbsp;&amp;nbsp;&amp;nbsp; o&amp;nbsp;&amp;nbsp;  o&lt;br /&gt;&lt;/p&gt;&lt;p&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  b&amp;nbsp;&amp;nbsp; a&amp;nbsp;&amp;nbsp;  r&lt;br /&gt;&lt;/p&gt;&lt;p&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; h&amp;nbsp;&amp;nbsp;  a&amp;nbsp;&amp;nbsp;  t&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Submit Form to email body as plain text?</title><link>https://www.infopathdev.com:443/forums/thread/19084.aspx</link><pubDate>Sun, 15 Apr 2007 22:18:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19084</guid><dc:creator>Susanna</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19084.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=19084</wfw:commentRss><description>&lt;p&gt;Hi there,&lt;/p&gt;&lt;p&gt;I seem to have a &amp;#39;same same but different&amp;#39; issue...&amp;nbsp; Please read the thread here: &lt;a href="http://infopathdev.com/forums/thread/1947.aspx"&gt;http://infopathdev.com/forums/thread/1947.aspx&lt;/a&gt;&amp;nbsp;and maybe you can help me.&amp;nbsp; I would really appreciate it.&lt;/p&gt;&lt;p&gt;/Susanna&lt;/p&gt;</description></item><item><title>Re: Submit Form to email body as plain text?</title><link>https://www.infopathdev.com:443/forums/thread/13767.aspx</link><pubDate>Wed, 07 Feb 2007 17:14:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13767</guid><dc:creator>cchenning</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13767.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13767</wfw:commentRss><description>Building on this topic, I have the following code for my Submit button (copied from the aformentiond form, thank you VERY MUCH!)&lt;br /&gt;&lt;br /&gt;function SendEmailBtn::OnClick(oEvent)&lt;br /&gt;{&lt;br /&gt;	createEmail();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function createEmail()&lt;br /&gt;{&lt;br /&gt;	var xmlContributors = XDocument.DOM.selectNodes("/iss:issue/iss:contributors/iss:contributor");&lt;br /&gt;	var xmlContributor;&lt;br /&gt;	var xmlTitle = XDocument.DOM.selectSingleNode("/iss:issue/iss:title");&lt;br /&gt;	var rgRecipients = new Array();&lt;br /&gt;&lt;br /&gt;	while (xmlContributor = xmlContributors.nextNode())&lt;br /&gt;		rgRecipients.push(getNodeValue(xmlContributor.selectSingleNode("iss:emailAddressPrimary")));&lt;br /&gt;&lt;br /&gt;	try&lt;br /&gt;		{&lt;br /&gt;		var oEnvelope = XDocument.View.Window.MailEnvelope;&lt;br /&gt;	&lt;br /&gt;		oEnvelope.To = rgRecipients.join(" ;");&lt;br /&gt;		oEnvelope.Subject = getNodeValue(xmlTitle);&lt;br /&gt;		oEnvelope.Visible = true;&lt;br /&gt;		}&lt;br /&gt;	catch (ex)&lt;br /&gt;		{&lt;br /&gt;		XDocument.UI.Alert(ex.description);&lt;br /&gt;		}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;I would like to add text for the "Introduction" and hardcode an additional email address or two for "To:" and "cc:".&lt;br /&gt;&lt;br /&gt;Can someone help this IP newbie/non-programmer?&lt;br /&gt;</description></item><item><title>Re: Submit Form to email body as plain text?</title><link>https://www.infopathdev.com:443/forums/thread/13766.aspx</link><pubDate>Tue, 06 Dec 2005 04:50:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13766</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13766.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13766</wfw:commentRss><description>Hi Julie-Mids, &lt;br /&gt;Superb sleuthing job! I remember working on the Issue Tracking form over three years ago... :) Glad it's still useful!&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Submit Form to email body as plain text?</title><link>https://www.infopathdev.com:443/forums/thread/13765.aspx</link><pubDate>Mon, 05 Dec 2005 15:15:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13765</guid><dc:creator>julie-mids</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13765.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13765</wfw:commentRss><description>&lt;br /&gt;Sorry, the sample form is Issue Tracking, not Asset Tracking.</description></item><item><title>Re: Submit Form to email body as plain text?</title><link>https://www.infopathdev.com:443/forums/thread/13764.aspx</link><pubDate>Mon, 05 Dec 2005 15:09:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13764</guid><dc:creator>julie-mids</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13764.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13764</wfw:commentRss><description>&lt;br /&gt;Well I have cheated slightly but I've come up with a really nice way of sending the form as the email body and in the exact same form as it is on Infopath.&lt;br /&gt;&lt;br /&gt;I found the email code on one of the Customized forms with Inpopath (the Assett tracking one).  I just deleted everything and copied my form onto it and it works beautifally!&lt;br /&gt;&lt;br /&gt;The email result is a perfect copy of the form inside the email body.. theres probably a hitch somewhere that I haven;t found yet!</description></item><item><title>Re: Submit Form to email body as plain text?</title><link>https://www.infopathdev.com:443/forums/thread/13763.aspx</link><pubDate>Sun, 04 Dec 2005 13:46:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13763</guid><dc:creator>julie-mids</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13763.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13763</wfw:commentRss><description>&lt;br /&gt;This is driving me nuts!  &lt;br /&gt;&lt;br /&gt;I am trying to do the simple bit as in just get a button to send the body in the email (although I would like to format it also, hence why I chose this post).&lt;br /&gt;&lt;br /&gt;However I can;t even get the first bit right and have tried inserting about 4 lots of code from different posts on the subject and none of them work!&lt;br /&gt;&lt;br /&gt;When I first pasted this one in it said i was missing a ';'   on the CTRL81_7::OnClick(eventObj) line above so I added one but it's now saying I need one elsewhere:&lt;br /&gt;&lt;br /&gt;This is an exact copy of what my code page looks like - what am I doing wrong?&lt;br /&gt;&lt;br /&gt;/*&lt;br /&gt; * This file contains functions for data validation and form-level events.&lt;br /&gt; * Because the functions are referenced in the form definition (.xsf) file, &lt;br /&gt; * it is recommended that you do not modify the name of the function,&lt;br /&gt; * or the name and number of arguments.&lt;br /&gt; *&lt;br /&gt;*/&lt;br /&gt;&lt;br /&gt;// The following line is created by Microsoft Office InfoPath to define the prefixes&lt;br /&gt;// for all the known namespaces in the main XML data file.&lt;br /&gt;// Any modification to the form files made outside of InfoPath&lt;br /&gt;// will not be automatically updated.&lt;br /&gt;//&amp;lt;namespacesDefinition&amp;gt;&lt;br /&gt;XDocument.DOM.setProperty("SelectionNamespaces", 'xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2005-12-04T13:29:03"');&lt;br /&gt;//&amp;lt;/namespacesDefinition&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;//=======&lt;br /&gt;// The following function handler is created by Microsoft Office InfoPath.&lt;br /&gt;// Do not modify the name of the function, or the name and number of arguments.&lt;br /&gt;//=======&lt;br /&gt;&lt;br /&gt;function mailMessage(to,subject,cc,body,bcc)&lt;br /&gt;{ try &lt;br /&gt;{ var myOlApp = new ActiveXObject("Outlook.Application");&lt;br /&gt;newMail = myOlApp.CreateItem(0); &lt;br /&gt;newMail.To = to; &lt;br /&gt;newMail.Subject = subject; &lt;br /&gt;newMail.CC = cc; &lt;br /&gt;newMail.BCC = bcc; &lt;br /&gt;newMail.Body = body; &lt;br /&gt;newMail.Send(); &lt;br /&gt;} &lt;br /&gt;catch(ex){ &lt;br /&gt;XDocument.UI.Alert(ex.description); &lt;br /&gt;} &lt;br /&gt;} &lt;br /&gt;CTRL81_7::OnClick(eventObj); &lt;br /&gt;{ &lt;br /&gt;mailMessage ("Andreas.westerlund@abc.com","Hallå","",XDocument.DOM.xml,""); &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;	// Write your code here&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;//=======&lt;br /&gt;// The following function handler is created by Microsoft Office InfoPath.&lt;br /&gt;// Do not modify the name of the function, or the name and number of arguments.&lt;br /&gt;//=======&lt;br /&gt;function CTRL1_5::OnClick(eventObj)&lt;br /&gt;{&lt;br /&gt;	// Write your code here&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Help! &lt;br /&gt;</description></item><item><title>Re: Submit Form to email body as plain text?</title><link>https://www.infopathdev.com:443/forums/thread/13762.aspx</link><pubDate>Wed, 12 Oct 2005 13:54:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13762</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13762.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13762</wfw:commentRss><description>You'll need to use formatting and escape characters. Depending on what language you're using you'll need to look up with escape character for "newline."  If you're using JScript (which it looks like you are) take a look at this for a complete reference:&lt;a target="_blank" href=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/jscript7/html/jsconStringData.asp&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/jscript7/html/jsconStringData.asp&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;As an example, with your data and the three fields you would have something like this:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;var subject = "Name : \'" + XDocument.DOM.selectSingleNode( "\\my:name_field" ).text + "\'\n"&lt;br /&gt;	+ "Age : \'" + XDocument.DOM.selectSingleNode( "\\my:age_field" ).text + "\'\n"&lt;br /&gt;	+ "Town : \'" + XDocument.DOM.selectSingleNode( "\\my:town_field" ).text + "\'\n\n"&lt;br /&gt;	+ "To unsubscribe to this mailing list, go to www.aol.com";&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;</description></item><item><title>Re: Submit Form to email body as plain text?</title><link>https://www.infopathdev.com:443/forums/thread/13761.aspx</link><pubDate>Wed, 12 Oct 2005 06:28:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13761</guid><dc:creator>Antz79</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13761.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13761</wfw:commentRss><description>Ok, Could you give me an example how that is done ? If you use like two fields... I´m new to this, so help would be very thanksful!.&lt;br /&gt;&lt;br /&gt;BR&lt;br /&gt;Andreas</description></item></channel></rss>