<?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: Pre-populating the email "Introduction" field</title><link>https://www.infopathdev.com:443/forums/thread/24851.aspx</link><pubDate>Mon, 03 Dec 2007 16:16:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24851</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24851.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=24851</wfw:commentRss><description>first you need to set up a data connection to submit data as an eMail. tools - data connection - add... then you need to write your function which will call this data connection via code. just do a search and use dataAdabters as the phrase. if i remember correct i just answered the same question a few days ago.</description></item><item><title>Re: Pre-populating the email "Introduction" field</title><link>https://www.infopathdev.com:443/forums/thread/24845.aspx</link><pubDate>Mon, 03 Dec 2007 14:48:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24845</guid><dc:creator>shmoss</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24845.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=24845</wfw:commentRss><description>&lt;p&gt;Nukkumatti, thanks for the info. Based on my current code how would I write in an eMail data adapter that you mention?&lt;/p&gt;</description></item><item><title>Re: Pre-populating the email "Introduction" field</title><link>https://www.infopathdev.com:443/forums/thread/24838.aspx</link><pubDate>Mon, 03 Dec 2007 08:48:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24838</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24838.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=24838</wfw:commentRss><description>I don&amp;#39;t know from where you got this but I am pretty sure that there is not such property &amp;quot;Introduction&amp;quot; for the mail envelope object. (please have a look in the help of your script editor). there is something existing for the eMail data adapter though. hope this helps.</description></item><item><title>Pre-populating the email "Introduction" field</title><link>https://www.infopathdev.com:443/forums/thread/24813.aspx</link><pubDate>Fri, 30 Nov 2007 00:13:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24813</guid><dc:creator>shmoss</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24813.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=24813</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m trying to pre-populate the email &amp;quot;Introduction&amp;quot; field with text but keep getting an error - Object doesn&amp;#39;t support this property or method&amp;quot; Below is the code I&amp;#39;m using. Any help would be great!!! Thanks, much!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;function XDocument::OnSubmitRequest(eventObj)&lt;/p&gt;
&lt;p&gt;var intro = XDocument.DOM.selectSingleNode(&amp;quot;/my:myFields/my:FormInfo/my:FormIntro&amp;quot;).text;&lt;/p&gt;
&lt;p&gt;oEnvelope.Introduction = intro;&lt;/p&gt;
&lt;p&gt;*****Below is complete function for reference******&lt;/p&gt;
&lt;p&gt;function XDocument::OnSubmitRequest(eventObj)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;// If the submit operation is successful, set&lt;br /&gt;&amp;nbsp;// eventObj.ReturnStatus = true;&lt;br /&gt;&amp;nbsp;// Write your code here &lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;// var xmlTitle = XDocument.DOM.selectSingleNode(&amp;quot;/iss:issue/iss:title&amp;quot;);&lt;br /&gt;&amp;nbsp;var send_email = XDocument.DOM.selectSingleNode(&amp;quot;/my:myFields/my:FormInfo/my:FormEmail&amp;quot;).text;&lt;br /&gt;&amp;nbsp;var submitter_email = XDocument.DOM.selectSingleNode(&amp;quot;/my:myFields/my:Email&amp;quot;).text;&lt;br /&gt;&lt;strong&gt;&amp;nbsp;var intro = XDocument.DOM.selectSingleNode(&amp;quot;/my:myFields/my:FormInfo/my:FormIntro&amp;quot;).text;&lt;br /&gt;&lt;/strong&gt;//&amp;nbsp;var vp_email = XDocument.DOM.selectSingleNode(&amp;quot;/my:myFields/my:VPemail&amp;quot;).text;&lt;br /&gt;&amp;nbsp;var subj = XDocument.DOM.selectSingleNode(&amp;quot;/my:myFields/my:FormInfo/my:FormSubject&amp;quot;).text;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;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;&amp;nbsp;oEnvelope.To = send_email;&lt;br /&gt;&amp;nbsp;&amp;nbsp;//oEnvelope.CC = XDocument.DOM.selectSingleNode(&amp;quot;/iss:myField/iss::Email&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;oEnvelope.CC = submitter_email;&lt;br /&gt;&amp;nbsp;&amp;nbsp;oEnvelope.Subject = subj;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;strong&gt;oEnvelope.Introduction = intro;&lt;/strong&gt;&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;&amp;nbsp;&amp;nbsp; &lt;br /&gt;//&amp;nbsp;&amp;nbsp; eventObj.ReturnStatus = true;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>