Title: Plugin sending 2000 emails
Last modified: December 14, 2018

---

# Plugin sending 2000 emails

 *  Resolved [provirtualzone](https://wordpress.org/support/users/provirtualzone/)
 * (@provirtualzone)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/plugin-sending-2000-emails/)
 * Hi,
 * Autoptimize just send it more than 2000 emails in less than 24h.
 * Dont know why this happen, but this was a huge problem.
 * “Autoptimize’s cache size is getting big, consider purging the cache. Have a 
   look at [https://wordpress.org/plugins/autoptimize/faq/](https://wordpress.org/plugins/autoptimize/faq/)
   to see how you can keep the cache size under control. (site: )
 * My hosting just block my email server because of this. How can I prevent this?
 * I cannot have my email server working until I discover how to block this from
   happen again.
 * Thank You
 * LP

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/plugin-sending-2000-emails/#post-10988892)
 * you can disable mails being sent with this code-snippet;
 *     ```
       add_filter('autoptimize_filter_cachecheck_sendmail','__return_false');
       ```
   
 * hope this helps,
    frank
 *  Thread Starter [provirtualzone](https://wordpress.org/support/users/provirtualzone/)
 * (@provirtualzone)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/plugin-sending-2000-emails/#post-10988929)
 * Hi Frank,
 * Thanks for the reply.
 * My question is, why this happen?? I have this plugin for long time and this never
   had happen.
 * So what did trigger this?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/plugin-sending-2000-emails/#post-10988986)
 * I guess a combination of:
    * your cache size passing the 500GB threshold * a 
   bug in 2.4.2 which resulted in cachechecker cron running more then once a day
   which was fixed in 2.4.4 (which not only fixes the bug but tries to remove the
   surplus scheduled cachechecker jobs).
 * so if you have not upgraded to 2.4.4 you should consider doing so, if only to
   clean up those extra cron-jobs.
 * frank
 *  Thread Starter [provirtualzone](https://wordpress.org/support/users/provirtualzone/)
 * (@provirtualzone)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/plugin-sending-2000-emails/#post-10989011)
 * My plugins are all updated, so that one is also updated and yes is 2.4.4
 * But regardless that, I want to disable sending emails. You have already add the
   code-snippet for that, but I never used snippet codes.
 * I installed the Snippets plugin for this, this is just create a new new snipped
   code with the option “Run snippet everywhere” and that is it?
 * Or is that a way to run directly on a specific plugin?
 * Again, thank your for reply and support.
 * LP
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/plugin-sending-2000-emails/#post-10989043)
 * I usually advise to use [Code Snippets](https://wordpress.org/plugins/code-snippets/)
   indeed, new snippet, run everywhere and that’s it.
 * if you have already updated you could install the “wp crontrol”-plugin and check
   if ao_cachechecker is still scheduled multiple times?
 * frank

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Plugin sending 2000 emails’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/plugin-sending-2000-emails/#post-10989043)
 * Status: resolved