<?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: Sending an email issue</title><link>https://www.infopathdev.com:443/forums/thread/28395.aspx</link><pubDate>Tue, 29 Apr 2008 20:26:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28395</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28395.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=28395</wfw:commentRss><description>&lt;p&gt;Glad you got it working. I thought the question was about the email, not about the close. It looks like all you did was delete the lines that sent the email and did the alert. If you did not want to send any email, then this was the right choice. If you just wanted to stop the email from being opened in Outlook -- but still send it -- then you need a different solution.&lt;/p&gt;</description></item><item><title>Re: Sending an email issue</title><link>https://www.infopathdev.com:443/forums/thread/28316.aspx</link><pubDate>Mon, 28 Apr 2008 02:49:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28316</guid><dc:creator>dharmendrapau</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28316.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=28316</wfw:commentRss><description>&lt;p&gt;I tried your code and Infopath kept on giving error message.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I tried this code and it worked.&lt;/p&gt;
&lt;p&gt;XDocument.View.Window.Close(true); &lt;/p&gt;
&lt;p&gt;Thanks for your support.&lt;/p&gt;
&lt;p&gt;Dave&lt;/p&gt;</description></item><item><title>Re: Sending an email issue</title><link>https://www.infopathdev.com:443/forums/thread/28266.aspx</link><pubDate>Fri, 25 Apr 2008 00:01:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28266</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28266.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=28266</wfw:commentRss><description>&lt;p&gt;You can do 2 things:&lt;/p&gt;
&lt;p&gt;1. Use the Mail Envelope instead (which shows the To:, CC: etc, right in InfoPath):&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;Application.ActiveWindow.MailEnvelope.To = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;Greg&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;br /&gt;Application.ActiveWindow.MailEnvelope.Visible = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;true&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;2. You can get the email data connection, set the field values, and the submit it via code.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Sending an email issue</title><link>https://www.infopathdev.com:443/forums/thread/28210.aspx</link><pubDate>Thu, 24 Apr 2008 06:51:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28210</guid><dc:creator>dharmendrapau</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28210.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=28210</wfw:commentRss><description>&lt;p&gt;Hi Guys, &lt;/p&gt;
&lt;p&gt;&amp;nbsp;I am using the following code to send an email and then closing the application.&amp;nbsp; It works&lt;/p&gt;
&lt;p&gt;Code:&lt;/p&gt;
&lt;p&gt;XDocument.UI.ShowMailItem(&amp;quot;&lt;a href="mailto:email@address.com"&gt;email@address.com&lt;/a&gt;&amp;quot;, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, &amp;quot;subject&amp;quot;, &amp;quot;Body&amp;quot;); &lt;/p&gt;
&lt;p&gt;XDocument.UI.Alert(&amp;quot;The e-mail message has been sent.&amp;quot;); &lt;/p&gt;
&lt;p&gt;Application.ActiveWindow.Close(true); &lt;/p&gt;
&lt;p&gt;Problems:&lt;/p&gt;
&lt;p&gt;It opens up MS Outlook and prompts them to send the email.&amp;nbsp; Is there anyway I can skip it from opening MS Outlook.&lt;/p&gt;
&lt;p&gt;Any advise is appreciated.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Dave&lt;/p&gt;</description></item></channel></rss>