<?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: How to send emails</title><link>https://www.infopathdev.com:443/forums/thread/13342.aspx</link><pubDate>Mon, 22 Aug 2005 17:13:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13342</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13342.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13342</wfw:commentRss><description>Did you create an email dataconnection called "Email Submit"?&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPath Dev India</description></item><item><title>Re: How to send emails</title><link>https://www.infopathdev.com:443/forums/thread/13341.aspx</link><pubDate>Mon, 22 Aug 2005 12:17:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13341</guid><dc:creator>markperry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13341.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13341</wfw:commentRss><description>I've tried using the code to programatically send an email but I get the following error message:&lt;br /&gt;&lt;br /&gt;System.Runtime.InteropServices.COMException&lt;br /&gt;An item with the following index does not exist in the collection: Email Submit&lt;br /&gt;&lt;br /&gt;What am I doing wrong?</description></item><item><title>Re: How to send emails</title><link>https://www.infopathdev.com:443/forums/thread/13340.aspx</link><pubDate>Tue, 12 Jul 2005 16:42:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13340</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13340.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13340</wfw:commentRss><description>Here is the code to send an email via code&lt;br /&gt;EmailAdapter oEmail	= (EmailAdapter)thisXDocument.DataAdapters["Email Submit"];&lt;br /&gt;oEmail.To = "email1@abc.com; email2@abc.com";&lt;br /&gt;oEmail.CC =  "email3@abc.com";		&lt;br /&gt;oEmail.Subject = "subject";&lt;br /&gt;oEmail.Intro = "Intro";&lt;br /&gt;oEmail.Submit();&lt;br /&gt;&lt;br /&gt;Note: Above code is in c#&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPathDev India</description></item><item><title>Re: How to send emails</title><link>https://www.infopathdev.com:443/forums/thread/13339.aspx</link><pubDate>Tue, 12 Jul 2005 15:56:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13339</guid><dc:creator>buzzby</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13339.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13339</wfw:commentRss><description>Hi&lt;br /&gt;&lt;br /&gt;thanks for the response. I have tried that but have some problems. I have 3 different emails i want to send when i click on 3 different buttons. With your method it only allows me to send 1 email. &lt;br /&gt;&lt;br /&gt;Can anyone give me the code that the data connection generates?</description></item><item><title>Re: How to send emails</title><link>https://www.infopathdev.com:443/forums/thread/13338.aspx</link><pubDate>Tue, 12 Jul 2005 01:23:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13338</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13338.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13338</wfw:commentRss><description>Hi Buzzby and welcome to the forum!&lt;br /&gt;This is easy to do. You need to go to Data Connection. In the Designer, go to Tools-&amp;gt;Data Connections and click Add. Select Submit data and click Next. Select "As an e-mail message" and click next. A dialog will appear that has lines for To:, Cc:, Bcc:, Subject:, Intro, and form attachment. Click on the "fx" button next to the To: line and click Insert Field or Group. Select the Field from your main data source. Click OK, and specify others if you want. Click Next and Finish. Note: the field must be a valid e-mail address.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>How to send emails</title><link>https://www.infopathdev.com:443/forums/thread/12492.aspx</link><pubDate>Mon, 11 Jul 2005 16:08:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12492</guid><dc:creator>buzzby</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12492.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12492</wfw:commentRss><description>Hi&lt;br /&gt;&lt;br /&gt;this is my first post so please be kind.&lt;br /&gt;&lt;br /&gt;I am trying to get infopath to send an email to an email address within a text field with a set message. I want this to happen when i click on a button.&lt;br /&gt;&lt;br /&gt;Thanks in advance with help</description></item></channel></rss>