Support

Home Forums Event Espresso Premium Emails not being sent (3)

Emails not being sent (3)

Posted: March 12, 2018 at 9:47 am

Viewing 3 reply threads


tariqrazzaq

March 12, 2018 at 9:47 am

Hi

I am testing a new event that I created and after registration, no email was sent. I checked the back end and the messages where in the queue. When I selected the send email message, I received the email.

Can you provide assistance to resolve this issue as I am unable to go live with an event until this issue is resolved

  • This topic was modified 6 years, 8 months ago by tariqrazzaq.
  • This topic was modified 4 years, 8 months ago by Garth.


Tony

  • Support Staff

March 12, 2018 at 10:00 am

Hi there,

It doesn’t sound there is an issue from the above.

Messages work through the queue using WP Cron, they are first added to the queue for generation, after around 5 mins you need to load a page on the site and WP Cron will execute running the first step, then repeat again 5 mins later for ‘sending’.

If you don’t want to use the message queue and just send the emails instantly you can go to:

Event Espresso -> Messages -> Settings.

Change the option for ‘Generate and send all messages:’ and set it to ‘On same request’.

EE introduced the message queue to prevent slow downs during registrations as EE needs to wait for your server to generate and send the messages before directing the user to the thank you page so I recommend testing this setup and confirm it doesn’t slow the registrations down to much.


tariqrazzaq

March 12, 2018 at 11:27 am

I have waited for over 10 minutes, refreshed the page to ensure WP Cron runs and nothing happens. I actually like the email queueing solution as it offers greater reliability of delivering message over the generate and send all messages option.

Can you think of anything else which would stop the emails from being sent? I get the impression the WP Cron is not firing. Also, can the queue for generation and queue for email be faster than 5 mins


Josh

  • Support Staff

March 12, 2018 at 2:27 pm

WP Cron not firing would cause the emails to not being sent. If you temporarily change the setting to “Send on same request” does the next registration get the email sent?

Also, can the queue for generation and queue for email be faster than 5 mins

Yes, this is possible by means of a filter hook. So to change the wp-cron so it can every 1 minute you’d add this code to a site-specific plugin:

add_filter( 'cron_schedules', function( $schedules ) {
    if ( isset( $schedules['ee_message_cron'] ) ) {
        $schedules['ee_message_cron']['interval'] = 30;
    }
    return $schedules;
});

Please bear in mind that wp_cron depends on traffic so the trigger may not happen every minute even with the above code in place.

Viewing 3 reply threads

The support post ‘Emails not being sent (3)’ 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