Posted: December 5, 2019 at 9:06 am
I do online registration tests and the mail “pending payment” is no longer sent automatically! I do not understand why ! |
|
Hi there, Can you post the full list of steps you are taking during testing, please? |
|
It’s ok, I just changed the “on the same request” parameter of the question: “generate and send all messages on the same request” |
|
Whilst changing the setting to ‘on same request’ in itself isn’t a problem if your emails are not working with the other setting it usually indicates there is an issue with WP_Cron on your site. To explain, EE uses a message queue system and the primary reason is to reduce the processing time required on the request for front end users. For example if you are using an SMTP server and each email needs to send individually, the user can be left waiting for the page load to complete with the above setting. To use a queue system we need a method of ‘stepping’ through the queue and for that we use WP_Cron (for details on WP_Cron see HERE) which is basically a method to ‘schedule’ takes to run. The user registers and triggers an email, which is set in the queue, after roughly 5 mins a scheduled task is triggered to ‘generate’ the message, then after another 5 mins a task is triggered to ‘send’ the email. This means the user can complete the registration and the email will generate and send shortly after. (Note WP_Cron need a visitor to load a page on your site for it to trigger so whilst the task is set for 5 mins it may take longer on low traffic sites) If messages aren’t sending with the option set to ‘on separate request’ it means WP_Cron isn’t working (or your not waiting long enough for the queue to function) so personally I would investigate that further. Also, if you ever opt to use Automated Upcoming Event Notifications add-on it relies on the above setting and WP_Cron to function. |
|
Okay, but how do you look at that more? |
|
First, knowing that messages can take roughly 10 mins to ‘send’ did you correctly test the message queue previously? If your not sure, switch it back to ‘on separate request’. Re-trigger registration messages. Go to Event Espresso -> Message activity. You’ll see a message that says ‘No recipient’ (thats expected). Wait a least 5 mins, refresh the page, does it show the message has generated? (It will have emails addresses now and have a blue status bar, which is the coloured bar to the left). Wait another 5 mins, refresh. Does it show the message as sent? (Green status bar) |
|
I changed the setting to put on separate request. I tried again a registration, and for 15 minutes the message is blocked and still not sent. |
|
What step is it sitting at? Queued for generation or queued for sending? |
|
She is waiting |
|
If you install WP Control on the site and go to Tools -> Cron Events Does it show a notice at the top of the page mentioning WP_Cron? |
|
This reply has been marked as private. | |
This reply has been marked as private. | |
Hmm, that’s strange. None of your EE cron jobs show in your screenshot. If you deactivate then re-activate EE4 on the site, do you then see: AHEE__EE_Messages_Scheduler__generation In the above list? You’ll need those jobs for the message queue to function. |
|
Yes the 3 lines appear. For now everything works fine when I set to “generate and send messages on the same request”. |
|
I still tried modifying generate and send messages on separate request since I disabled and activated the plugin, and the problem is still the same. I modify to put on the same request. |
|
As far as I can tell from the above, sure. As long as you don’t want to use the Automated Upcoming Event Notifications Add-on. |
|
The support post ‘The automatic sending of the email does not work anymore’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.