<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Send the form by email by code</title><link>https://www.infopathdev.com:443/forums/thread/70980.aspx</link><pubDate>Mon, 10 Oct 2011 12:36:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70980</guid><dc:creator>Brokholm</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70980.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=70980</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I know this is an old tread, but I&amp;#39;ve been having the same, or at least a similar,&amp;nbsp;problem, I&amp;#39;ve created the form in Infopath 2007, but half the people using the form are still in office 2003. When the form tries to send the current view as a confirmation, they just get at empty mail. Only the subject field is populated, and the email adresses.&lt;/p&gt;
&lt;p&gt;The only way I&amp;#39;ve been able to make it work is going back to the programming I used when I created an older version of the form in Infopath 2003.&lt;/p&gt;</description></item><item><title>Re: Send the form by email by code</title><link>https://www.infopathdev.com:443/forums/thread/28109.aspx</link><pubDate>Mon, 21 Apr 2008 23:37:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28109</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28109.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=28109</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m not aware of any incompatibilities between InfoPath 2003 and Outlook 2007. Perhaps someone else can address that issue.&lt;/p&gt;</description></item><item><title>Re: Send the form by email by code</title><link>https://www.infopathdev.com:443/forums/thread/28062.aspx</link><pubDate>Fri, 18 Apr 2008 12:06:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28062</guid><dc:creator>shayrlz</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28062.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=28062</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks!!&lt;/p&gt;
&lt;p&gt;In my PC I´m having problems of compability with Outlook 2007 and infopath 2003 :/&lt;/p&gt;
&lt;p&gt;&amp;nbsp;But this work in other pc where Outlook 2003 is intalled =D&lt;/p&gt;</description></item><item><title>Re: Send the form by email by code</title><link>https://www.infopathdev.com:443/forums/thread/28054.aspx</link><pubDate>Fri, 18 Apr 2008 06:53:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28054</guid><dc:creator>Albert</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28054.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=28054</wfw:commentRss><description>&lt;div&gt;There are&amp;nbsp;atleast&amp;nbsp;three&amp;nbsp;ways in InfoPath 2003 to send an email from code (jscript):&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;//Method one (this also sends the current view)&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;a href="http://www.infopathdev.com/forums/p/5780/27701.aspx#27701"&gt;http://www.infopathdev.com/forums/p/5780/27701.aspx#27701&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;//Methode two (needs an email dataconnection)&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;function EmailWithData(dataAdapterName, to, CC, subject, intro, attachmentFileName)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; try&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;var objEmailAdapter; &lt;br /&gt;&amp;nbsp;&amp;nbsp;objEmailAdapter = XDocument.DataAdapters(dataAdapterName); &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objEmailAdapter.To = to;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objEmailAdapter.CC = CC;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objEmailAdapter.Subject = subject;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objEmailAdapter.Intro = intro;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objEmailAdapter.AttachmentFileName = attachmentFileName + &amp;quot;.xml&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objEmailAdapter.Submit();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return true;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch(exception)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return false;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;//Methode three&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;XDocument.UI.ShowMailItem(to, CC, BCC, subject, Body);&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Goodluck, Albert&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;</description></item><item><title>Re: Send the form by email by code</title><link>https://www.infopathdev.com:443/forums/thread/28052.aspx</link><pubDate>Thu, 17 Apr 2008 22:39:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28052</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28052.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=28052</wfw:commentRss><description>&lt;p&gt;Basically, as a high-level overview, you need to have a Submit to Email data connection already in place. Then you populate the various email fields in code, and&amp;nbsp;submit the connection.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However, there are some specific issues you will run into with this... mainly that switching views in code to export or submit a specific view, doesn&amp;#39;t work without some specially workarounds. Here are some of the details: &lt;a href="http://www.infopathdev.com/forums/t/7655.aspx"&gt;http://www.infopathdev.com/forums/t/7655.aspx&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Send the form by email by code</title><link>https://www.infopathdev.com:443/forums/thread/28051.aspx</link><pubDate>Thu, 17 Apr 2008 22:06:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28051</guid><dc:creator>shayrlz</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28051.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=28051</wfw:commentRss><description>&lt;p&gt;How can I send the form by e-mail using code?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;(I now that I can using a button, but I want to do this using code)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What I really want is send a specific View by E-mail :)&lt;/p&gt;</description></item></channel></rss>