<?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>emailing form data, using infopath 2003 + outlook 2007</title><link>https://www.infopathdev.com:443/forums/thread/41702.aspx</link><pubDate>Thu, 14 May 2009 09:15:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41702</guid><dc:creator>pineapple23</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41702.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=41702</wfw:commentRss><description>&lt;p&gt;Hi everyone.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I need to make my form email the data of a new record to a given address. The problem is that IP 2003 requires Outlook 2003 to be the default mail client in order to do this. I have found forum posts offering workarounds using javascript, however, none of them seem to work. it doesnt help that i have very little coding knowledge, and am not sure if i&amp;#39;m even pasting the code in the correct place&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div&gt;function OpenMailEnvelop(subject, to)&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 oEnvelope = Application.ActiveWindow.MailEnvelope;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&amp;nbsp;oEnvelope.Subject = subject;&lt;br /&gt;&amp;nbsp;&amp;nbsp;oEnvelope.To = to;&lt;br /&gt;&amp;nbsp;&amp;nbsp;oEnvelope.Visible = true;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&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;br /&gt;&lt;/div&gt;
&lt;div&gt;function btnSomeButton::OnClick(eventObj)&lt;br /&gt;{&lt;/div&gt;
&lt;div&gt;&amp;nbsp; OpenMailEnvelop(&amp;quot;this is the subject&amp;quot;, &amp;quot;&lt;a href="mailto:someone@somewhere.com"&gt;someone@somewhere.com&lt;/a&gt;&amp;quot;)&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;i&amp;#39;ve just been pasting all of this where the code for the button goes, and changing nothing except the &amp;quot;btnSomeButton&amp;quot; reference, and the email address/subject.&lt;/div&gt;
&lt;div&gt;any help would be very much appreciated.&lt;/div&gt;</description></item></channel></rss>