• Resolved johnm243

    (@johnm243)


    I'm configuring MailPoet on a website. Everything works fine (sign-up, double opt-in, confirmation emails) … except it doesn't send out the Newsletter when it is supposed to!
    
    Now I am repurposing the Newsletter function: I am using it to send out a PDF when someone signs up on the form on one of my pages.
    
    It seems that this is a cron issue. I read up on cron and created a server-side cron to run every 5 minutes:
    
    wget -q -O - https://domain-name.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1
    
    This was based on the 0,30 cron that was already there:
    
    wget -q -O - https://domain-name.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1
    
    There is also a MailPoet cron job that runs every 15 minutes:
    
    /usr/local/bin/php /home/searchen/public_html/wp-content/plugins/mailpoet/mailpoet-cron.php /home/searchen/public_html/ >/dev/null 2>&1
    
    Based on that, I created a server side cron that runs every 5 minutes…
    
    I also read about sending issues in the MailPoet KB:
    
    https://kb.mailpoet.com/article/131-hosts-which-mailpoet-task-scheduler-wont-work
    
    https://kb.mailpoet.com/article/129-what-is-the-newsletter-task-scheduler
    
    https://kb.mailpoet.com/article/231-sending-does-not-work
    
    I don't have Task Scheduler nor Activation problems: both say "Connection successful."!
    
    https://prnt.sc/WKDIOdXFceJe
    
    Traffic is very light so I need something that doesn't depend on page loads.
    
    As mentioned above, confirmation emails work fine! And cron entries appear in the logs!
    
    Any ideas on how to get the MailPoet newsletter queue to be checked every 5 minutes? More than a day after I created a test subscriber to the Benefits and Myths list, no newsletter has been sent. And no Newsletter email was sent after I opened the home page! 
    
    https://prnt.sc/iS_dWERInIr1
    
    
    Thanks,
    
    John
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support kellymetal a11n

    (@kellymetal)

    Hi there @johnm243,

    Now I am repurposing the Newsletter function: I am using it to send out a PDF when someone signs up on the form on one of my pages.

    Just to clarify this point, were you sending a newsletter with a URL linking back to a PDF file hosted on your site? (The newsletter in MailPoet itself doesn’t allow embedding PDFs or attaching files, so just wanted to make sure about this).

    It seems that this is a cron issue. I read up on cron and created a server-side cron to run every 5 minutes:

    wget -q -O – https://domain-name.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1

    This was based on the 0,30 cron that was already there:

    wget -q -O – https://domain-name.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1

    There is also a MailPoet cron job that runs every 15 minutes:

    /usr/local/bin/php /home/searchen/public_html/wp-content/plugins/mailpoet/mailpoet-cron.php /home/searchen/public_html/ >/dev/null 2>&1

    Based on that, I created a server side cron that runs every 5 minutes…

    For this section of your message, if I understand correctly:

    • you created a CRON job on your server to trigger your WP cron every 5 minutes
    • there was a CRON job already there to run your WP cron, set to run every 30 minutes
    • You also created a cron job to trigger your MailPoet cron every 15 minutes
    • And another one to run every 5 minutes?

    Is that correct? Please send over a screenshot of this list of cron jobs on your server.

    Also, please try switching your cron setting under MailPoet > Settings > Advanced to use the “WordPress built-in cron (recommended)” option and see if that makes a difference. If the cron job on your server is running and triggering the WP Cron, then this setting should allow it to trigger the MailPoet cron as well.

    Any ideas on how to get the MailPoet newsletter queue to be checked every 5 minutes? More than a day after I created a test subscriber to the Benefits and Myths list, no newsletter has been sent. And no Newsletter email was sent after I opened the home page!

    https://prnt.sc/iS_dWERInIr1

    From this screenshot, I see you are referring to a Welcome email that would send after someone joins that list (rather than a standard newsletter). We can see 0 were sent, but 1 was scheduled. Is the subscriber who signed up in “Subscribed” status (under MailPoet > Subscribers > All)?

    Note that Welcome emails will not be sent until a subscriber has confirmed their subscription.

    Thread Starter johnm243

    (@johnm243)

    Thanks @kellymetal

    Answers:

    1. Yes, I uploaded the PDF to the Media Library and provided a link.
    2. Here is a list of the 3 current cron jobs: https://prnt.sc/xdNUSmb8yWa- . In case there were conflicts, I cleaned it up after I sent this support request in.
    1. Yes, confirmation emails were received. I even made a custom confirmation email… “Yup, we’ve added you to our email list. You’ll hear from us shortly.”
    2. I made the change you mentioned (“Also, please try switching your cron setting under MailPoet > Settings > Advanced to use the “WordPress built-in cron (recommended)” option and see if that makes a difference.”). All is now working properly. FYI, I changed it to “Server side cron (Linux cron)” because it didn’t work before! Maybe I should have changed it then changed it back?

    Thanks again @kellymetal!

    John

    Plugin Support kellymetal a11n

    (@kellymetal)

    Hi there @johnm243,

    Thank you for confirming all of that!

    All is now working properly. FYI, I changed it to “Server side cron (Linux cron)” because it didn’t work before! Maybe I should have changed it then changed it back?

    That’s great to hear that it’s working now! Generally, if you have it set to the Linux cron option, and that cron job is running on the server as expected, then that should work as well, so it’s hard to say offhand why it wasn’t.

    However, since you have the other cron job on the server triggering the WP Cron every 5 minutes, then the “WordPress built-in cron (recommended)” in MailPoet should be reliable as well to trigger everything.

    I’m going to mark this as resolved, but if you have any other questions, please feel free to open a new thread! Take care, and have a wonderful day.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘MailPoet Sending Issues’ is closed to new replies.