Title: Mail Queue Not Working
Last modified: May 26, 2024

---

# Mail Queue Not Working

 *  Resolved [loopforever](https://wordpress.org/support/users/loopforever/)
 * (@loopforever)
 * [2 years ago](https://wordpress.org/support/topic/mail-queue-not-working/)
 * Hello,
   First of all, thank you for the plugin. I want to ask about a problem 
   I’m experiencing.
 * There is a plugin called abc (this is a custom plugin not listed). This plugin
   sends emails to nearly 100 users once a day. As you might expect, this plugin
   uses the cron structure to perform the relevant function.
   The problem is this:
   Under normal circumstances, the Mail Queue plugin works. Emails are placed in
   a queue. However, emails sent by the above plugin are not queued. Even the emails
   sent in the “Log” section of the Mail Queue plugin are not visible.
 * What could be the reason for this?
   To test the relevant situation, I manually
   trigger the Cron created by the abc plugin by a plugin called WP Crontrol.As 
   I said at the beginning, e-mails are sent. However, the Mail Queue plugin does
   not work.Note: There is another case of email sending by the abc plugin. However,
   in this case a cron is not used. For example, when a product is added, a mass
   email is sent. There is no problem in this part. Mail Queue works perfectly.Additionally,
   the classic wp_mail function is used in the abc plugin.
 * Mail Queue settings I defined to test: [https://i.ibb.co/x2xDzgX/mail-queue.png](https://i.ibb.co/x2xDzgX/mail-queue.png)
    -  This topic was modified 2 years ago by [loopforever](https://wordpress.org/support/users/loopforever/).
    -  This topic was modified 2 years ago by [loopforever](https://wordpress.org/support/users/loopforever/).

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

 *  Thread Starter [loopforever](https://wordpress.org/support/users/loopforever/)
 * (@loopforever)
 * [2 years ago](https://wordpress.org/support/topic/mail-queue-not-working/#post-17781991)
 * Additional Content
   The relevant plugin sends e-mail as follows. Source code [here](https://onlinephp.io/c/ddda0)
 *  Plugin Author [WDM](https://wordpress.org/support/users/wdm-team/)
 * (@wdm-team)
 * [1 year, 12 months ago](https://wordpress.org/support/topic/mail-queue-not-working/#post-17793467)
 * Hi [@loopforever](https://wordpress.org/support/users/loopforever/),
 * Thank you for your message!
 * Yes, in this code example of yours the wp_mail() function is used. Nevertheless,
   I would like to bet that the plugin hooks into the wp_mail() function elsewhere
   or even overwrites the wp_mail() function (which some plugins fatally do). This
   makes the MailQueue unusable.
 * Can you please go a little deeper into the abc plugin and check if it makes changes
   to wp_mail()?
 * Thanks & greetings from Munich, 
   Nicolas
 *  Thread Starter [loopforever](https://wordpress.org/support/users/loopforever/)
 * (@loopforever)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/mail-queue-not-working/#post-17800962)
 * Thank you for your answer. Yes, the plugin uses wp_mail function elsewhere. However,
   this usage requires a different hook to be triggered.
   In other words, when using
   wp_mail, which is not currently a plugin, the other wp_mail function will not
   be triggered. What could be another problem? I can’t solve this problem for days.
   In the other wp_mail function used by the plugin, cron is not used. In such a
   case, Mail Queue works perfectly. I think the problem is caused by cron, but 
   I still don’t understand why it might happen. Do you have an idea?
 *  Plugin Author [WDM](https://wordpress.org/support/users/wdm-team/)
 * (@wdm-team)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/mail-queue-not-working/#post-17803426)
 * Hi [@loopforever](https://wordpress.org/support/users/loopforever/) ,
 * I am assuming that your plugin completely overwrites the wp_mail() function in
   certain cases and is therefore incompatible with our Mail Queue plugin. I’m sorry
   about that.
 * Can you provide us with this plugin as a zip file? Then I would be happy to take
   a look at the code.
 * Alternatively, you could check whether other “Mail Loggin” or “Mail Queue” plugins
   are also not working. It would be likely.

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

The topic ‘Mail Queue Not Working’ is closed to new replies.

 * ![](https://ps.w.org/mail-queue/assets/icon-128x128.gif?rev=2650489)
 * [Mail Queue](https://wordpress.org/plugins/mail-queue/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mail-queue/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mail-queue/)
 * [Active Topics](https://wordpress.org/support/plugin/mail-queue/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mail-queue/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mail-queue/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [WDM](https://wordpress.org/support/users/wdm-team/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/mail-queue-not-working/#post-17803426)
 * Status: resolved