<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Preventing the &#8220;Whoops, here you have the attachment&#8221; second email with outlook</title>
	<atom:link href="http://www.guidodiepen.nl/2008/11/preventing-the-whoops-here-you-have-the-attachment-second-email-with-outlook/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.guidodiepen.nl/2008/11/preventing-the-whoops-here-you-have-the-attachment-second-email-with-outlook/</link>
	<description>Personal Blog of Guido Diepen</description>
	<lastBuildDate>Tue, 31 Aug 2010 06:50:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: admin</title>
		<link>http://www.guidodiepen.nl/2008/11/preventing-the-whoops-here-you-have-the-attachment-second-email-with-outlook/comment-page-1/#comment-4341</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 01 Apr 2010 11:40:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.guidodiepen.nl/?p=29#comment-4341</guid>
		<description>I really don&#039;t know why this code is not executed at all, if anybody has some idea, please post it here.</description>
		<content:encoded><![CDATA[<p>I really don&#8217;t know why this code is not executed at all, if anybody has some idea, please post it here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hannah</title>
		<link>http://www.guidodiepen.nl/2008/11/preventing-the-whoops-here-you-have-the-attachment-second-email-with-outlook/comment-page-1/#comment-4330</link>
		<dc:creator>Hannah</dc:creator>
		<pubDate>Tue, 30 Mar 2010 02:07:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.guidodiepen.nl/?p=29#comment-4330</guid>
		<description>If I use this code, then I get the message box prompt come up with the &quot;it appears...&quot; message.  That&#039;s as far as I can get it to work.  If I put the Item.Attachments.count = 0 code back in i get nothing happening.

The code is pasted into ThisOutlookSession, and has been digitally signed.  Just does not appear to work with the full code.

Cheers,
Hannah

Option Explicit
 
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
  If Item.Class = Outlook.olMail Then
                  Dim userReply As VBA.VbMsgBoxResult
 
        userReply = VBA.MsgBox(&quot;It appears you are sending the email without attachments while &quot; &amp; _
                           &quot;the body/subject contains possible references to an attachment.&quot; &amp; _
                           VBA.vbNewLine &amp; &quot;Do you want to send the message without attachments?&quot;, _
                           VBA.vbYesNo + VBA.vbDefaultButton2 + VBA.vbQuestion + VBA.vbSystemModal, _
                           &quot;Possibly missing attachment...&quot;)
 
        If userReply = VBA.vbNo Then
          Cancel = True
        End If
    
   End If
End Sub</description>
		<content:encoded><![CDATA[<p>If I use this code, then I get the message box prompt come up with the &#8220;it appears&#8230;&#8221; message.  That&#8217;s as far as I can get it to work.  If I put the Item.Attachments.count = 0 code back in i get nothing happening.</p>
<p>The code is pasted into ThisOutlookSession, and has been digitally signed.  Just does not appear to work with the full code.</p>
<p>Cheers,<br />
Hannah</p>
<p>Option Explicit</p>
<p>Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)<br />
  If Item.Class = Outlook.olMail Then<br />
                  Dim userReply As VBA.VbMsgBoxResult</p>
<p>        userReply = VBA.MsgBox(&#8220;It appears you are sending the email without attachments while &#8221; &amp; _<br />
                           &#8220;the body/subject contains possible references to an attachment.&#8221; &amp; _<br />
                           VBA.vbNewLine &amp; &#8220;Do you want to send the message without attachments?&#8221;, _<br />
                           VBA.vbYesNo + VBA.vbDefaultButton2 + VBA.vbQuestion + VBA.vbSystemModal, _<br />
                           &#8220;Possibly missing attachment&#8230;&#8221;)</p>
<p>        If userReply = VBA.vbNo Then<br />
          Cancel = True<br />
        End If</p>
<p>   End If<br />
End Sub</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.guidodiepen.nl/2008/11/preventing-the-whoops-here-you-have-the-attachment-second-email-with-outlook/comment-page-1/#comment-4306</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 25 Mar 2010 14:39:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.guidodiepen.nl/?p=29#comment-4306</guid>
		<description>@Hannah

Are you absolutely sure that you pasted the code in the ThisOutlookSession object that already existed (i.e. that you did not create it yourself)? 

One thing you can try is to put something like:
VBA.MsgBox &quot;Testing&quot;

as the first line of the Application_ItemSend procedure. This should result in a messagebox with every message you send. 

But my guess would be that you pasted the code in another module, and not in the ThisOutlookSession object that should always exist.

Kind regards,

Guido Dieepn</description>
		<content:encoded><![CDATA[<p>@Hannah</p>
<p>Are you absolutely sure that you pasted the code in the ThisOutlookSession object that already existed (i.e. that you did not create it yourself)? </p>
<p>One thing you can try is to put something like:<br />
VBA.MsgBox &#8220;Testing&#8221;</p>
<p>as the first line of the Application_ItemSend procedure. This should result in a messagebox with every message you send. </p>
<p>But my guess would be that you pasted the code in another module, and not in the ThisOutlookSession object that should always exist.</p>
<p>Kind regards,</p>
<p>Guido Dieepn</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hannah</title>
		<link>http://www.guidodiepen.nl/2008/11/preventing-the-whoops-here-you-have-the-attachment-second-email-with-outlook/comment-page-1/#comment-4302</link>
		<dc:creator>Hannah</dc:creator>
		<pubDate>Thu, 25 Mar 2010 04:13:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.guidodiepen.nl/?p=29#comment-4302</guid>
		<description>I use Outlook 2007.  Followed all the steps, got prompted about trusting the macro (so it must know it is there).  However when I send an email refferring to an attachment that is not there I get nothing.  It just sends as per usual.

Any ideas?</description>
		<content:encoded><![CDATA[<p>I use Outlook 2007.  Followed all the steps, got prompted about trusting the macro (so it must know it is there).  However when I send an email refferring to an attachment that is not there I get nothing.  It just sends as per usual.</p>
<p>Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anton</title>
		<link>http://www.guidodiepen.nl/2008/11/preventing-the-whoops-here-you-have-the-attachment-second-email-with-outlook/comment-page-1/#comment-3573</link>
		<dc:creator>anton</dc:creator>
		<pubDate>Wed, 30 Dec 2009 14:49:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.guidodiepen.nl/?p=29#comment-3573</guid>
		<description>i use u work in my plugin. for &lt;a href=&quot;http://www.mapilab.com/outlook/attachments_processor/&quot; rel=&quot;nofollow&quot;&gt;extract attachments outlook&lt;/a&gt;) mapilab lol)</description>
		<content:encoded><![CDATA[<p>i use u work in my plugin. for <a href="http://www.mapilab.com/outlook/attachments_processor/" rel="nofollow">extract attachments outlook</a>) mapilab lol)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Feike</title>
		<link>http://www.guidodiepen.nl/2008/11/preventing-the-whoops-here-you-have-the-attachment-second-email-with-outlook/comment-page-1/#comment-2656</link>
		<dc:creator>Feike</dc:creator>
		<pubDate>Tue, 01 Sep 2009 11:18:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.guidodiepen.nl/?p=29#comment-2656</guid>
		<description>I use Outlook 2003 (SP3).
I hadn&#039;t signed the macro yet, because it ran without problems. At your suggestion I did sign the macro, but in Outlook, the menu Tools-&gt; Macro-&gt; Macros… did not show my macro.

Changing Security Levels to Low, closing Outlook: &quot;Do you want to save Project1.OTM?&quot; Yes. Restarting Outlook, Closing Outlook: &quot;Do you want to save Project1.OTM?&quot; Hmmm, I thought I just did.
It turned out after closing Outlook, there was still an Outlook.exe process running. I killed it, restarted Outlook: &quot;Do you trust the macro of Feike?&quot; Yes, I do!
I put Security Levels back to High and things work fine now :)</description>
		<content:encoded><![CDATA[<p>I use Outlook 2003 (SP3).<br />
I hadn&#8217;t signed the macro yet, because it ran without problems. At your suggestion I did sign the macro, but in Outlook, the menu Tools-&gt; Macro-&gt; Macros… did not show my macro.</p>
<p>Changing Security Levels to Low, closing Outlook: &#8220;Do you want to save Project1.OTM?&#8221; Yes. Restarting Outlook, Closing Outlook: &#8220;Do you want to save Project1.OTM?&#8221; Hmmm, I thought I just did.<br />
It turned out after closing Outlook, there was still an Outlook.exe process running. I killed it, restarted Outlook: &#8220;Do you trust the macro of Feike?&#8221; Yes, I do!<br />
I put Security Levels back to High and things work fine now <img src='http://www.guidodiepen.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.guidodiepen.nl/2008/11/preventing-the-whoops-here-you-have-the-attachment-second-email-with-outlook/comment-page-1/#comment-2654</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 01 Sep 2009 07:12:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.guidodiepen.nl/?p=29#comment-2654</guid>
		<description>I did not include any code that determines you are goofing around ;)

I don&#039;t know what could be causing it for you. Have you followed all the steps about self-signing the macro also?

Furthermore, which version of outlook do you  have? Does the problem persist after you have opened the macro editor with ALT-F11 ?

Regards,

Guido Diepen</description>
		<content:encoded><![CDATA[<p>I did not include any code that determines you are goofing around <img src='http://www.guidodiepen.nl/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>I don&#8217;t know what could be causing it for you. Have you followed all the steps about self-signing the macro also?</p>
<p>Furthermore, which version of outlook do you  have? Does the problem persist after you have opened the macro editor with ALT-F11 ?</p>
<p>Regards,</p>
<p>Guido Diepen</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Feike</title>
		<link>http://www.guidodiepen.nl/2008/11/preventing-the-whoops-here-you-have-the-attachment-second-email-with-outlook/comment-page-1/#comment-2592</link>
		<dc:creator>Feike</dc:creator>
		<pubDate>Fri, 28 Aug 2009 08:42:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.guidodiepen.nl/?p=29#comment-2592</guid>
		<description>I used it yesterday without any problems. I like it so much, I send e-mail intentionally &quot;forgetting&quot; the attachments. But this morning, it just sends my e-mails without reminding me. Is there some secret code that can tell I&#039;m just goofing around?</description>
		<content:encoded><![CDATA[<p>I used it yesterday without any problems. I like it so much, I send e-mail intentionally &#8220;forgetting&#8221; the attachments. But this morning, it just sends my e-mails without reminding me. Is there some secret code that can tell I&#8217;m just goofing around?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wes</title>
		<link>http://www.guidodiepen.nl/2008/11/preventing-the-whoops-here-you-have-the-attachment-second-email-with-outlook/comment-page-1/#comment-2547</link>
		<dc:creator>Wes</dc:creator>
		<pubDate>Tue, 25 Aug 2009 19:38:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.guidodiepen.nl/?p=29#comment-2547</guid>
		<description>After following the instructions above i find the code works perfectly. Make sure you save the project and enable the macros with this self-signed signature</description>
		<content:encoded><![CDATA[<p>After following the instructions above i find the code works perfectly. Make sure you save the project and enable the macros with this self-signed signature</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edward</title>
		<link>http://www.guidodiepen.nl/2008/11/preventing-the-whoops-here-you-have-the-attachment-second-email-with-outlook/comment-page-1/#comment-1916</link>
		<dc:creator>Edward</dc:creator>
		<pubDate>Fri, 10 Jul 2009 15:38:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.guidodiepen.nl/?p=29#comment-1916</guid>
		<description>I had the same problem as Peter, would be grateful for the cure!</description>
		<content:encoded><![CDATA[<p>I had the same problem as Peter, would be grateful for the cure!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
