<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Email failure with IE7</title><link>https://www.infopathdev.com:443/forums/thread/60661.aspx</link><pubDate>Mon, 25 Oct 2010 07:26:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60661</guid><dc:creator>GazM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60661.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=60661</wfw:commentRss><description>&lt;p&gt;Patrick&lt;/p&gt;
&lt;p&gt;I wish it was that simple. The code is used because I do not want to send the whole form in the email. I extract various bits of information from fields within the form to create the body of the email.&lt;/p&gt;
&lt;p&gt;Gary&lt;/p&gt;</description></item><item><title>Re: Email failure with IE7</title><link>https://www.infopathdev.com:443/forums/thread/60654.aspx</link><pubDate>Mon, 25 Oct 2010 07:10:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60654</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60654.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=60654</wfw:commentRss><description>&lt;p&gt;Why do you need to use code to do this. InfoPath can send email via a data connection and that&amp;#39;s the best practice. Do that and live with the extra popup. It&amp;#39;s not so bad.&lt;/p&gt;</description></item><item><title>Email failure with IE7</title><link>https://www.infopathdev.com:443/forums/thread/60567.aspx</link><pubDate>Thu, 21 Oct 2010 13:18:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60567</guid><dc:creator>GazM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60567.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=60567</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I have been using the VB code below to send custom email messages from a button control. Using IP2003, Office 2003 and&amp;nbsp;IE6 this has worked fine for the last 5 years or so.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sub Respond_OnClick(eventObj)&lt;/p&gt;
&lt;p&gt;Set oOutlookApp = GetObject(, &amp;quot;Outlook.Application&amp;quot;)&lt;br /&gt;If Err &amp;lt;&amp;gt; 0 Then&lt;br /&gt;&amp;nbsp;&amp;nbsp; Set oOutlookApp = CreateObject(&amp;quot;Outlook.Application&amp;quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp; bStarted = True&lt;br /&gt;End If&lt;/p&gt;
&lt;p&gt;Set oItem = oOutlookApp.CreateItem(olMailItem)&lt;/p&gt;
&lt;p&gt;With oItem&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;Set the recipient&lt;br /&gt;&amp;nbsp;&amp;nbsp; .To = &amp;quot;&lt;a href="mailto:person@address"&gt;person@address&lt;/a&gt;&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;#39;Set the recipient for a copy&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;#39;.CC = &amp;quot;&lt;a href="mailto:recipient2@mail.com"&gt;recipient2@mail.com&lt;/a&gt;&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;#39;Set the subject&lt;br /&gt;&amp;nbsp;&amp;nbsp; .Subject = &amp;quot;New subject&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;#39;The content of the document is used as the body for the email&lt;br /&gt;&amp;nbsp;&amp;nbsp; .Body = &amp;quot;Info&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;#39;Add the document as an attachment, you can use the .displayname property&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;#39;to set the description that&amp;#39;s used in the message&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;#39;.Attachments.Add Source:=ActiveDocument.FullName, Type:=olByValue, _&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;#39;&amp;nbsp; DisplayName:=&amp;quot;Document as attachment&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp; .Send&lt;br /&gt;End With&lt;/p&gt;
&lt;p&gt;If bStarted Then&lt;br /&gt;&amp;nbsp;&amp;nbsp; oOutlookApp.Quit&lt;br /&gt;End If&lt;/p&gt;
&lt;p&gt;Recently some users have updated IE6 to IE7 or IE8 and the email buttons have stopped working. Outlook does not fire up and there are no error messages and no emails. I am guessing it is one of the settings in IE that needs to be changed.&lt;/p&gt;
&lt;p&gt;Any ideas&lt;/p&gt;
&lt;p&gt;Gary&lt;/p&gt;</description></item></channel></rss>