• Resolved loopforever

    (@loopforever)


    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

    • This topic was modified 9 months, 2 weeks ago by loopforever.
    • This topic was modified 9 months, 2 weeks ago by loopforever.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter loopforever

    (@loopforever)

    Additional Content
    The relevant plugin sends e-mail as follows. Source code here

    Plugin Author WDM

    (@wdm-team)

    Hi @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

    (@loopforever)

    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

    (@wdm-team)

    Hi @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.