• Hello,

    Thanks for a powerful plugin. I have installed the plugin on my site and I want to send emails to all users using the queueing system. There are about 1300 user accounts on the site.

    I do this to add emails to the queue.

    
    $users = get_users(); // Array of user objects (about 1300 users)
    foreach ( $users as $user ) {
        wp_mail($user->user_email, $subject, $body, $headers);
    }
    

    When I do this, all emails are sent to the queue, but it doesn’t send anything, it just stops. Is there a limit of how many emails can be added to the queue?

    I have also tried adding a much smaller list of emails (about 5), and when I do this the emails are sent out right away.

    What am I doing wrong? Is there a way to jumpstart the sending process?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Milan Petrovic

    (@gdragon)

    By default, plugin doesn’t capture every email for sending through queue. By default, plugin captures every wp_mail call that sends email to more than one recipient (using CC and BCC).

    Are you sure that emails are added to the queue? Do you see the queue status on the plugin dashboard?

    Thread Starter Filespit

    (@filespit)

    Thanks for answering.

    Yes I do. In the dashboard, the queue status says “Waiting”, as I suppose it should? I see all my emails in the log, they all have the green “To Queue” tag in the status column. I suppose that means they’re awaiting to be sent? The queue cron job has been called over 3000 times, but its not sending any emails. I might have the wrong interval or timeout settings, do you have any recommendations for those?

    Plugin Author Milan Petrovic

    (@gdragon)

    If the queue is called and not working, you should check the PHP error log to see if there are any errors logged there. Make sure that PHP on server is configured to log errors, or if not, make sure to enable WordPress own debug mode.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Plugin not sending mails in queue’ is closed to new replies.