<?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: Emailing selective fields within a form</title><link>https://www.infopathdev.com:443/forums/thread/14926.aspx</link><pubDate>Wed, 06 Dec 2006 16:50:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14926</guid><dc:creator>chuckiecc</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14926.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14926</wfw:commentRss><description>Gary thanks.. Yes I searched for a long while.. I have not tried the code but VERY much appreciate your submission.&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Emailing selective fields within a form</title><link>https://www.infopathdev.com:443/forums/thread/14925.aspx</link><pubDate>Wed, 06 Dec 2006 12:39:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14925</guid><dc:creator>GazM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14925.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14925</wfw:commentRss><description>Hi&lt;br /&gt;I had a similar problem and after hours of searching I found this code (VBScript) and modified it to suit my needs. It will send the contents of the selected fields (just 2 in this example) as the body of the email.&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;Sub SendData(eventObj)&lt;br /&gt;Dim bStarted&lt;br /&gt;Dim oOutlookApp&lt;br /&gt;Dim oItem&lt;br /&gt;Dim oBody&lt;br /&gt;Dim oORacle&lt;br /&gt;Dim oTitle&lt;br /&gt;&lt;br /&gt;On Error Resume Next&lt;br /&gt;&lt;br /&gt;Set oOutlookApp = GetObject(, "Outlook.Application")&lt;br /&gt;If Err &amp;lt;&amp;gt; 0 Then&lt;br /&gt;   Set oOutlookApp = CreateObject("Outlook.Application")&lt;br /&gt;   bStarted = True&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;Set oOracle = XDocument.DOM.selectSingleNode("//my:myFields/my:Oracle")&lt;br /&gt;Set oTitle = XDocument.DOM.selectSingleNode("//my:myFields/my:Title")&lt;br /&gt;oBody = "Oracle No:" &amp; oOracle.text &amp; " Scheme Title:" &amp; oTitle.text&lt;br /&gt;&lt;br /&gt;Set oItem = oOutlookApp.CreateItem(olMailItem)&lt;br /&gt;&lt;br /&gt;With oItem&lt;br /&gt;    'Set the recipient&lt;br /&gt;   .To = "anyone@emailaddress"&lt;br /&gt;   'Set the recipient for a copy&lt;br /&gt;   '.CC = "recipient2@mail.com"&lt;br /&gt;   'Set the subject&lt;br /&gt;   .Subject = "7 day notice"&lt;br /&gt;   'The content of the document is used as the body for the email  &lt;br /&gt;   .Body = oBody&lt;br /&gt;   'Add the document as an attachment, you can use the .displayname property&lt;br /&gt;   'to set the description that's used in the message&lt;br /&gt;   '.Attachments.Add Source:=ActiveDocument.FullName, Type:=olByValue, _&lt;br /&gt;   '  DisplayName:="Document as attachment"&lt;br /&gt;   .Send&lt;br /&gt;End With&lt;br /&gt;&lt;br /&gt;If bStarted Then&lt;br /&gt;   oOutlookApp.Quit&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;Set oItem = Nothing&lt;br /&gt;Set oOutlookApp = Nothing&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Hope this helps&lt;br /&gt;&lt;br /&gt;Gary</description></item><item><title>Re: Emailing selective fields within a form</title><link>https://www.infopathdev.com:443/forums/thread/14924.aspx</link><pubDate>Wed, 06 Dec 2006 01:19:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14924</guid><dc:creator>chuckiecc</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14924.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14924</wfw:commentRss><description>Greg thanks.. yes I thought of that, but it emails the entire form.  This was the subject of previous posts on other topics as well.  However I understand that with code, you can only attach certain fields in 2003.. I *think* this limitation is removed in 2007.. but not sure as my copy hasnt arrived yet..  In the meantime, I did read in a post somewhere that you CAN do this with code, but no example of that code..  So I continue my search...  &lt;br /&gt;&lt;br /&gt;thanks for the reply Greg..</description></item><item><title>Re: Emailing selective fields within a form</title><link>https://www.infopathdev.com:443/forums/thread/14923.aspx</link><pubDate>Wed, 06 Dec 2006 00:59:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14923</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14923.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14923</wfw:commentRss><description>Perhaps you can create a new view that has only the fields you want to email, and then perform your email from that view.</description></item><item><title>Emailing selective fields within a form</title><link>https://www.infopathdev.com:443/forums/thread/12993.aspx</link><pubDate>Mon, 04 Dec 2006 22:54:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12993</guid><dc:creator>chuckiecc</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12993.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12993</wfw:commentRss><description>Hi, hopefully someone can help.  I have a complex infopath form with many fields (over 600).  I want to parse out only a few and submit them via email with the email submission control.  I can however only figure out how to submit the entire form.  &lt;br /&gt;&lt;br /&gt;Can someone please help..  thanks.&lt;br /&gt;&lt;br /&gt;ps Im new at this so you will have to go a bit slow for me if you dont mind.. thanks</description></item></channel></rss>