<?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>InfoPath 2010</title><link>https://www.infopathdev.com:443/forums/142.aspx</link><description>Are you exploring new features coming up in 2010? Share information and ask questions here!</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: VBA or C# Code for Button Submit to E-Mail</title><link>https://www.infopathdev.com:443/forums/thread/73269.aspx</link><pubDate>Mon, 26 Dec 2011 14:54:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73269</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73269.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=73269</wfw:commentRss><description>&lt;p&gt;Hi Daniel,&lt;/p&gt;&lt;p&gt;Assuming you are using the InfoPath rich client, Thierry&amp;#39;s code is probably still fine. Note that the object model changed for browser forms between 2007 and 2010 object model. &lt;/p&gt;&lt;p&gt;To answer your first question, yes, the &amp;quot;EmailConnectionName&amp;quot; is the name of the data connection that you create. It&amp;#39;s just a submit data connection. Go to the data connection dialog in the Designer to get the name. Make sure it is spelled correctly with casing correct too.&lt;/p&gt;&lt;p&gt;I am not sure if tit will send the form in the body of the email or not. You might send Thierry an email.&lt;/p&gt;&lt;p&gt;Cheers,&lt;/p&gt;</description></item><item><title>VBA or C# Code for Button Submit to E-Mail</title><link>https://www.infopathdev.com:443/forums/thread/73177.aspx</link><pubDate>Wed, 21 Dec 2011 20:38:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73177</guid><dc:creator>dscoland</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73177.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=73177</wfw:commentRss><description>&lt;p&gt;Hi All,&lt;/p&gt;&lt;p&gt;Product Versions: InfoPath 2010, Visual Basic 2010 Express, SharePoint 2010 (Enterprise Edition)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;I recently published a form on our SharePoint 2010 intranet.&amp;nbsp; However, I want the Submit action to be sent as e-mail.&amp;nbsp; To eliminate the recipients pop-up, I found that it would be more efficient to use C# or VBA code for the button click.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I referred to various forums:&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/p/3521/14029.aspx#14029"&gt;http://www.infopathdev.com/forums/p/3521/14029.aspx#14029&lt;/a&gt;&lt;/p&gt;&lt;p&gt;I&amp;#39;m looking at the code for C# in that thread, and I don&amp;#39;t understand this code:&amp;nbsp;&lt;/p&gt;&lt;p&gt;EmailAdapter oEmail = (EmailAdapter)thisXDocument.DataAdapters[&amp;quot;EmailConnectionName&amp;quot;];&lt;/p&gt;&lt;p&gt;The &amp;quot;EmailConnectionName&amp;quot; to be precise.&amp;nbsp; Does that mean that is the name of the email connection defined in the Submit options for the button? Or is that referencing something else?&lt;/p&gt;&lt;p&gt;&amp;nbsp;Moreover,&amp;nbsp; I don&amp;#39;t even know if this code will work for what I want to do--which is&amp;nbsp;sending the form as the body in the e-mail.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Any help would be greatly appreciated.&lt;/p&gt;&lt;p&gt;Daniel&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>