<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Open Outlook / Submit Button</title><link>https://www.infopathdev.com:443/forums/thread/69484.aspx</link><pubDate>Mon, 22 Aug 2011 08:19:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69484</guid><dc:creator>jimblue1</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69484.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=69484</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve used the C# code below on InfoPath 2010 and it works on on the rich-client. It doesn&amp;#39;t work on IPFS. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;using Outlook = Microsoft.Office.Interop.Outlook;&lt;/p&gt;&lt;p&gt;&amp;nbsp;public void btnOpenOutlook_Clicked(object sender, ClickedEventArgs e)&lt;br /&gt;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Outlook.Application oApplication = new Outlook.Application();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Outlook.MailItem newMail = (Outlook.MailItem)oApplication.CreateItem(Outlook.OlItemType.olMailItem);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; newMail.To = &amp;quot;email@domain.com&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; newMail.Subject = &amp;quot;test email from infopath&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; newMail.Body = &amp;quot;hello world&amp;quot;;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; newMail.Display(false); &lt;/p&gt;&lt;p&gt;} &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Open Outlook / Submit Button</title><link>https://www.infopathdev.com:443/forums/thread/53050.aspx</link><pubDate>Tue, 23 Mar 2010 13:40:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53050</guid><dc:creator>GazM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53050.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=53050</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Using IP2003&amp;nbsp;I have added a button with a rule set to &amp;#39;submit to data connection&amp;#39;. For the same button I have added the following code (VBScript).&lt;/p&gt;
&lt;p&gt;Sub Submit_OnClick(eventObj)&lt;/p&gt;
&lt;p&gt;Dim myEnvelope&lt;/p&gt;
&lt;p&gt;set myEnvelope = Application.ActiveWindow.MailEnvelope&lt;/p&gt;
&lt;p&gt;&amp;#39; Specify addresses, subject, and introduction.&lt;/p&gt;
&lt;p&gt;myEnvelope.To = &amp;quot;email address&amp;quot;&lt;/p&gt;
&lt;p&gt;myEnvelope.CC = &amp;quot;email address&amp;quot;&lt;/p&gt;
&lt;p&gt;myEnvelope.BCC = &amp;quot;email address&amp;quot;&lt;/p&gt;
&lt;p&gt;myEnvelope.Subject = &amp;quot;Plot request&amp;quot; &lt;/p&gt;
&lt;p&gt;myEnvelope.Introduction = &amp;quot;Type text here&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;#39; Include form template with form.&lt;/p&gt;
&lt;p&gt;myEnvelope.EmailAttachmentType = EmailAttachmentType.XmlXs&lt;/p&gt;
&lt;p&gt;&amp;#39; Display form with e-mail envelope.&lt;/p&gt;
&lt;p&gt;myEnvelope.Visible = True&lt;/p&gt;
&lt;p&gt;End Sub&lt;/p&gt;
&lt;p&gt;This opens Outlook with a preview of the email which you can edit or add additional instructions. There will also be a JScript equivalent of the code.&lt;/p&gt;
&lt;p&gt;Gary&lt;/p&gt;</description></item><item><title>Re: Open Outlook / Submit Button</title><link>https://www.infopathdev.com:443/forums/thread/53026.aspx</link><pubDate>Tue, 23 Mar 2010 05:53:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53026</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53026.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=53026</wfw:commentRss><description>&lt;p&gt;i dont think there is a way to do so, but i would also like to know if there is any way to do so&lt;/p&gt;</description></item><item><title>Open Outlook / Submit Button</title><link>https://www.infopathdev.com:443/forums/thread/53009.aspx</link><pubDate>Mon, 22 Mar 2010 19:44:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53009</guid><dc:creator>ramz003</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53009.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=53009</wfw:commentRss><description>&lt;p&gt;Is there a way on the submit button to open our outlook so you can edit the email before it is sent?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>