<?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: typed value displayed in email subject</title><link>https://www.infopathdev.com:443/forums/thread/14397.aspx</link><pubDate>Tue, 21 Mar 2006 04:57:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14397</guid><dc:creator>uma</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14397.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14397</wfw:commentRss><description>Hi, &lt;br /&gt;&lt;br /&gt;Here is the code which you want in script:&lt;br /&gt;&lt;br /&gt;var oEmail = XDocument.DataAdapters("Email Submit");&lt;br /&gt;oEmail.To = abc@xyz.com;&lt;br /&gt;oEmail.CC = xyz@abc.com;&lt;br /&gt;oEmail.Subject = XDocument.DOM.selectSingleNode("xpath of the text box which you want to use");&lt;br /&gt;oEmail.Intro = "Email body";&lt;br /&gt;oEmail.Submit();&lt;br /&gt;&lt;br /&gt;In the above code "Email Submit" is the data connection which is used to submit the emails.&lt;br /&gt;You can create this in InfoPath form from Tools-&amp;gt;Dataconnections.&lt;br /&gt;</description></item><item><title>typed value displayed in email subject</title><link>https://www.infopathdev.com:443/forums/thread/12820.aspx</link><pubDate>Mon, 20 Mar 2006 13:35:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12820</guid><dc:creator>deanrussell</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12820.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12820</wfw:commentRss><description>I am fairly new to infopath and programming and I'm having trouble writing a script that will allow me to display a typed value from a text box in the subject line of an email.  I am writing the script in jscript.  Any thoughts?  Thanks.</description></item></channel></rss>