Support

Home Forums Event Espresso Premium The automatic sending of the email does not work anymore

The automatic sending of the email does not work anymore

Posted: December 5, 2019 at 9:06 am

Viewing 15 reply threads


abyaute

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 !


Tony

  • Support Staff

December 5, 2019 at 10:31 am

Hi there,

Can you post the full list of steps you are taking during testing, please?


abyaute

December 5, 2019 at 12:31 pm

It’s ok, I just changed the “on the same request” parameter of the question: “generate and send all messages on the same request”
and it works.
Thanks for your feedback ! good night


Tony

  • Support Staff

December 6, 2019 at 3:08 am

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.


abyaute

December 6, 2019 at 3:36 am

Okay, but how do you look at that more?


Tony

  • Support Staff

December 6, 2019 at 3:42 am

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)


abyaute

December 6, 2019 at 6:40 am

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.


Tony

  • Support Staff

December 6, 2019 at 6:55 am

What step is it sitting at?

Queued for generation or queued for sending?


abyaute

December 6, 2019 at 7:40 am

She is waiting


Tony

  • Support Staff

December 6, 2019 at 1:58 pm

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?
If so, what does it say?


abyaute

December 7, 2019 at 2:08 am

This reply has been marked as private.


abyaute

December 7, 2019 at 2:11 am

This reply has been marked as private.


Tony

  • Support Staff

December 9, 2019 at 3:59 am

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
AHEE__EE_Messages_Scheduler__sending
AHEE__EE_Messages_Scheduler__cleanup

In the above list?

You’ll need those jobs for the message queue to function.


abyaute

December 9, 2019 at 7:30 am

Yes the 3 lines appear. For now everything works fine when I set to “generate and send messages on the same request”.
Can I leave this setting without a problem?


abyaute

December 9, 2019 at 7:35 am

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.


Tony

  • Support Staff

December 9, 2019 at 11:56 am

Yes the 3 lines appear. For now everything works fine when I set to “generate and send messages on the same request”.
Can I leave this setting without a problem?

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.

Viewing 15 reply threads

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.

Event Espresso