<?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: E-mail from InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/60420.aspx</link><pubDate>Fri, 15 Oct 2010 19:28:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60420</guid><dc:creator>Potemkine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60420.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=60420</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What is the version of Microsoft.Office.Interop.Outlook you add ? I guess it&amp;#39;s 14.0.0.0 &lt;/p&gt;
&lt;p&gt;Try to add the 12.0.0.0 instead of the 14.0.0.0 and try it on both environment.&lt;/p&gt;</description></item><item><title>Re: E-mail from InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/60417.aspx</link><pubDate>Fri, 15 Oct 2010 18:35:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60417</guid><dc:creator>ncolyer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60417.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=60417</wfw:commentRss><description>&lt;p&gt;The problem is the data connector did not allow me to customize the e-mails in the way i need. I couldn&amp;#39;t change the body of the e-mail message to just sections i wanted. Unless I missed something.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I also need lots of buttons that e-mail off to different people in some cases, and only e-mail sections of the form. This formatting of the e-mail is extremely important, hence why i did it as above.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Anyone know how to get my code to work in Infopath 2007 and Infopath 2010?&lt;/p&gt;</description></item><item><title>Re: E-mail from InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/59938.aspx</link><pubDate>Tue, 05 Oct 2010 20:17:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59938</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59938.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=59938</wfw:commentRss><description>&lt;p&gt;Hi Nick,&lt;/p&gt;
&lt;p&gt;Why are you writing code to do this? Just use the e-mail data connector. No code means less maintenance cost. Nothing in your code is special. You can do it all with out-of-box rules and data connections from the InfoPath Designer. &lt;/p&gt;</description></item><item><title>E-mail from InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/59654.aspx</link><pubDate>Tue, 05 Oct 2010 13:49:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59654</guid><dc:creator>ncolyer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59654.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=59654</wfw:commentRss><description>&lt;p&gt;I wonder if someone here can help me.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have a wonderfully working Infopath form until I upgraded my Office to 2010.&lt;/p&gt;
&lt;p&gt;Essentially I&amp;#39;ve created buttons that send e-mails out. Here is an example of the code:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39; Create a new MailItem.&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; oMsg &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; Outlook._MailItem&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;oMsg = oApp.CreateItem(Outlook.OlItemType.olMailItem)&lt;/p&gt;
&lt;p&gt;oMsg.Subject = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;subject here&amp;quot;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;oMsg.Body = &amp;quot;text here&amp;quot;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;oMsg.To = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&lt;a href="mailto:e-mail@email.com"&gt;e-mail@email.com&lt;/a&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; sBodyLen &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;String&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; = oMsg.Body.Length&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39; Send&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;oMsg.Send()&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39; Clean up&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;oApp = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Nothing&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;oMsg = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Nothing&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;In order to get this working I had to add &amp;quot;Imports Outlook = Microsoft.Office.Interop.Outlook&amp;quot; to the top of the form and add a reference to this in Project explorer.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However when I went to 2010 it broke, I had to add this reference again. Now users are reporting the form does not work with Outlook 2007.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Does anyone know how to fix it so it works on both?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Nick&lt;/p&gt;</description></item></channel></rss>