<?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>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Send automatic mail without clicking send button</title><link>https://www.infopathdev.com:443/forums/thread/35668.aspx</link><pubDate>Thu, 11 Dec 2008 13:55:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35668</guid><dc:creator>Anuma</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35668.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=35668</wfw:commentRss><description>&lt;p&gt;&lt;font face="Verdana"&gt;Hi Akanksha,&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Verdana"&gt;Welcome to the Forums.&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font face="Verdana"&gt;Can you try these steps.&lt;/font&gt;&lt;/p&gt;
&lt;ol style="MARGIN-TOP:0in;"&gt;
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;Double click on button to open button properties dialog&lt;/span&gt; 
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;Select “Submit” in the Action dropdown.&lt;/span&gt; 
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;Select “Enable submit Commands and buttons’ option in the submitting Form dialog box.&lt;/span&gt; 
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;Select Email in the “Submit to” dropdown.&lt;/span&gt; 
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;Click on add button.&lt;/span&gt; 
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;Select “FX” button beside of the TO field.&lt;/span&gt; 
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;Select the field where you are getting the “To” value from. (Ex: if you are entering in the form, enter that field path; or if you are getting from any secondary data source, enter secondary data source path)&lt;/span&gt; 
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;Enter the Subject what you want.&lt;/span&gt; 
&lt;li class="MsoNormal" style="MARGIN:0in 0in 0pt;mso-list:l0 level1 lfo1;tab-stops:list .5in;"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Verdana;"&gt;Click on next and click on finish.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;</description></item><item><title>Re: Send automatic mail without clicking send button</title><link>https://www.infopathdev.com:443/forums/thread/35662.aspx</link><pubDate>Thu, 11 Dec 2008 13:31:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35662</guid><dc:creator>akankshas</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35662.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=35662</wfw:commentRss><description>&lt;span style="COLOR:#1f497d;mso-ansi-language:EN-US;"&gt;&lt;font face="Calibri" size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR:#1f497d;mso-ansi-language:EN-US;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;I created a InfoPath which sends out an email and would like to have “Send” button with default index so that the forms gets submitted successfully. &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR:#1f497d;mso-ansi-language:EN-US;"&gt;&lt;font face="Calibri" size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR:#1f497d;mso-ansi-language:EN-US;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Could you please guide me or direct me to the resource or KB which details on how to adjust the default index on email message popup in InfoPath form.&lt;/font&gt;&lt;/font&gt;&lt;/span&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Send automatic mail without clicking send button</title><link>https://www.infopathdev.com:443/forums/thread/12401.aspx</link><pubDate>Wed, 28 Mar 2007 02:53:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12401</guid><dc:creator>anotherchrisberry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12401.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12401</wfw:commentRss><description>I don't think it can be done.&lt;br /&gt;&lt;br /&gt;I spent a lot of time on this problem.&lt;br /&gt;&lt;br /&gt;In the end, I think it's because Infopath itself needs to send the email through an email application, so it uses whatever your default email app is. But it can't just send a message. It always requires a confirmation - which makes sense. Imagine emails being sent from an end user's email account without his/her knowledge. It's not very secure.&lt;br /&gt;&lt;br /&gt;If you find a solution, please post it. I'm sure there are dozens of Infopath programmers that would love to read about it.</description></item><item><title>Re: Send automatic mail without clicking send button</title><link>https://www.infopathdev.com:443/forums/thread/12400.aspx</link><pubDate>Tue, 27 Mar 2007 11:23:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12400</guid><dc:creator>mrudula</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12400.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12400</wfw:commentRss><description>Thanks for your quick reply. And thanks for time you had spent on this.&lt;br /&gt;&lt;br /&gt;Ya that also I tried but I dont want to show the HTML view of the form I also want user to edit in some of the controls of form. &lt;br /&gt;&lt;br /&gt;It's so not happening. I searched a lot on this. It costs me a lot. What do I do? Somenody please help me out.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Mrudula</description></item><item><title>Re: Send automatic mail without clicking send button</title><link>https://www.infopathdev.com:443/forums/thread/12399.aspx</link><pubDate>Tue, 27 Mar 2007 11:14:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12399</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12399.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12399</wfw:commentRss><description>I wouldn't know now of any other way but to create your own eMail body.&lt;br /&gt;&lt;br /&gt;With this:&lt;br /&gt;&lt;pre&gt;MailMessage objMail = new MailMessage();&lt;br /&gt;objMail.BodyFormat	= System.Web.Mail.MailFormat.Html;&lt;br /&gt;objMail.From		= "from@address.ca";&lt;br /&gt;objMail.To			= "to@address.ca";&lt;br /&gt;objMail.Subject		= "Test Subject";&lt;br /&gt;objMail.Body		=  "&amp;lt;b&amp;gt;FROM:&amp;lt;/b&amp;gt;" + "&amp;lt;font color=red&amp;gt;" + "Sample TEXT" + "&amp;lt;/font&amp;gt;" &lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;you will be able to create your own custom eMail body using html tags for formattig. Like this then you can put all the required data into the mail body. Will cost you some time to write the code depending on how many values (coming from your controls) you wanna put into the mail body.&lt;br /&gt;&lt;br /&gt;That's really the last idea i have right now.&lt;br /&gt;May be someone else knows another solution.&lt;br /&gt;&lt;br /&gt;Good luck !&lt;br /&gt;</description></item><item><title>Re: Send automatic mail without clicking send button</title><link>https://www.infopathdev.com:443/forums/thread/12398.aspx</link><pubDate>Tue, 27 Mar 2007 10:32:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12398</guid><dc:creator>mrudula</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12398.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12398</wfw:commentRss><description>Thanks for reply.&lt;br /&gt;&lt;br /&gt;ya right,we cannot do like that. I have already tried that too.It too asks to click send button.&lt;br /&gt;&lt;br /&gt;Could we able to do it? is it possible to send mail without  interraction with user? It should be,right? But I cannot find it right away.&lt;br /&gt;And I want it urgently, I serached alot. Please help me through.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Mrudula&lt;br /&gt;</description></item><item><title>Re: Send automatic mail without clicking send button</title><link>https://www.infopathdev.com:443/forums/thread/12397.aspx</link><pubDate>Tue, 27 Mar 2007 09:54:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12397</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12397.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12397</wfw:commentRss><description>Won't work either, also requires you to click send.&lt;br /&gt;Hm this is a tricky one...</description></item><item><title>Re: Send automatic mail without clicking send button</title><link>https://www.infopathdev.com:443/forums/thread/12396.aspx</link><pubDate>Tue, 27 Mar 2007 09:35:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12396</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12396.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12396</wfw:commentRss><description>Okay then the only other thing I could imagine how to do is to follow the idea julie-mids posted here.&lt;br /&gt;It's already a while ago when I red this but was able to find it again.&lt;br /&gt;&lt;br /&gt;&lt;a href='http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=1006&amp;SearchTerms=slight' target='_blank' title='http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=1006&amp;SearchTerms=slight'&lt;a target="_blank" href=http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=1006&amp;SearchTerms=slight&gt;http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=1006&amp;SearchTerms=slight&lt;/a&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;have a look for this section:&lt;br /&gt;&lt;br /&gt;"""Well I have cheated slightly but I've come up with a really nice way of sending the form as the email body and in the exact same form as it is on Infopath.&lt;br /&gt;I found the email code on one of the Customized forms with Inpopath (the Issue tracking one). I just deleted everything and copied my form onto it and it works beautifally!&lt;br /&gt;The email result is a perfect copy of the form inside the email body.. theres probably a hitch somewhere that I haven;t found yet!"""</description></item><item><title>Re: Send automatic mail without clicking send button</title><link>https://www.infopathdev.com:443/forums/thread/12395.aspx</link><pubDate>Tue, 27 Mar 2007 08:48:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12395</guid><dc:creator>mrudula</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12395.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12395</wfw:commentRss><description>Thanks for reply.&lt;br /&gt;&lt;br /&gt;The flow of my work is like this, &lt;br /&gt;When user clicks button on application, the already saved form should go through mail to the specific person. I can get emailids and all through code. I just want to send this Infoapth form in the body of mail and not as an attachment. As using EmailAdapter and MailEnvelope we can send form in the body of mail I want like that stucture of the mail body. So I tried it using both but it needs user interaction. &lt;br /&gt;Sending mail as you said through code only attach form to mail and it doesnt embed form in the body of mail.&lt;br /&gt;&lt;br /&gt;So can I do something similar to this? Please help me through this.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Mrudula</description></item><item><title>Re: Send automatic mail without clicking send button</title><link>https://www.infopathdev.com:443/forums/thread/12394.aspx</link><pubDate>Tue, 27 Mar 2007 08:26:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12394</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12394.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12394</wfw:commentRss><description>Ah okay. Then I think you have no other choice but...&lt;br /&gt;&lt;br /&gt;Put a button to your form and select edit code to write your own code:&lt;br /&gt;&lt;br /&gt;First thing you need to do is use the thisXDocument.SaveAs() method to temporary save your infopath form to C:\temp on your local disc for example.&lt;br /&gt;&lt;br /&gt;After that you can use then the MailMessage object to achive what you want, you need to add the attachment of course. should be something similar to this:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;			MailMessage mes = new MailMessage();&lt;br /&gt;			mes.From = "test@company.ca";&lt;br /&gt;			mes.To = "test@company.ca";&lt;br /&gt;			mes.Attachments.Add("C:\\temp\\yourForm.xml);&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Keep in mind using the SaveAs method requires your form to be set to full trust.&lt;br /&gt;&lt;br /&gt;Give it a try hope it'll work for you. Let me know if it helped.</description></item><item><title>Re: Send automatic mail without clicking send button</title><link>https://www.infopathdev.com:443/forums/thread/12393.aspx</link><pubDate>Tue, 27 Mar 2007 08:04:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12393</guid><dc:creator>mrudula</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12393.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12393</wfw:commentRss><description>Thanks for help.&lt;br /&gt;Ya, I have also tried with MailEnvelope but there also it asks to click send button which I dont want.&lt;br /&gt;Code-&lt;br /&gt;Infopath.MailEnvelope myEnvelope = apclass.ActiveWindow.MailEnvelope;&lt;br /&gt;myEnvelope.To = emailid;&lt;br /&gt;myEnvelope.Subject = "Test Mail";&lt;br /&gt;myEnvelope.Visible = true;&lt;br /&gt;&lt;br /&gt;This is the code that I tried.This also shows infopath form in the body of mail that I want.But it needs user interactionto send mail.&lt;br /&gt;Could you please tell me how to write own code to send mail with the help of MailEnvelope?&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Mrudula</description></item><item><title>Re: Send automatic mail without clicking send button</title><link>https://www.infopathdev.com:443/forums/thread/12392.aspx</link><pubDate>Tue, 27 Mar 2007 06:15:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12392</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12392.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12392</wfw:commentRss><description>Hi, I would not use the EmailAdapter but MailEnvelope instead.&lt;br /&gt;Just search the from for it an i think you'll find a solution.&lt;br /&gt;Just write your own eMail sending without using the data connection, you can also attach the infopath form to that mail programatically.</description></item><item><title>Send automatic mail without clicking send button</title><link>https://www.infopathdev.com:443/forums/thread/12167.aspx</link><pubDate>Tue, 27 Mar 2007 05:24:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12167</guid><dc:creator>mrudula</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12167.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12167</wfw:commentRss><description>Hi All,&lt;br /&gt;&lt;br /&gt;I searched a lot in forum before sending this query but didnt get any solution. I have written a code to send mail with infopath form attached to it with the help of Email adapter and submitting it. I am getting window asking send button and cancel button before sedning mail through the email data connection. I dont want to ask user this question, I want to send mail automatically. &lt;br /&gt;Code-&lt;br /&gt;&lt;br /&gt;//if email data connection is done in the infopath form&lt;br /&gt;EmailAdapter EmailAdptr = (EmailAdapter)myXDoc.DataAdapters["Email Submit"];&lt;br /&gt;EmailAdptr.Submit();&lt;br /&gt;&lt;br /&gt;Is it possible? and how? Could anybody help me out this? &lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Mrudula</description></item></channel></rss>