Support

Home Forums Event Espresso Premium Email sending intermittently.

Email sending intermittently.

Posted: March 17, 2017 at 5:54 pm

Viewing 3 reply threads


m3support

March 17, 2017 at 5:54 pm

Our email notifications only send about 1/3 of the time.

I sent a few tests and was watching the maillog, and only about one in three orders generated a log entry, which indicates that the message is never actually being generated and getting to sendmail for delivery (as opposed to the usual spam/spf/dkim issues). I haven’t seen a pattern as to why yet, but this is causing some trouble and confusion for our customers.

I should mention I am running a dedicated server, CentOs 6.5 and the latest version of Event Espresso.


Josh

  • Support Staff

March 17, 2017 at 6:00 pm

It sounds like maybe wp-cron is may not be so reliable on your site. You could try going to Event Espresso > Messages > Message Settings and change the setting there to send messages on the same request. That will make sure the messages get sent instantly.


m3support

March 17, 2017 at 7:54 pm

Thanks Josh — sorry to be a pest on a Friday evening.

I have set it to that already, per other instructions I had seen you give in the forums. Still had the same problem.

BTW, if I try to re-queue the messages that didn’t send, they also give an error. I wonder if the messages are being constructed improperly by wp_mail?

The odd clue I keep coming back to is that sendmail logs don’t even show some of the messages landing in the sendmail queue at all…


Tony

  • Support Staff

March 20, 2017 at 7:46 am

So you see the messages within the message activity log in:

Event Espresso -> Messages -> message activity

But not within the sendmail log?

Or you don’t see them at all in the EE messages activity table?

BTW, if I try to re-queue the messages that didn’t send, they also give an error. I wonder if the messages are being constructed improperly by wp_mail?

What error is being thrown?

The odd clue I keep coming back to is that sendmail logs don’t even show some of the messages landing in the sendmail queue at all…

If wp_mail returns false then the message will not be queued as you mentioned above, the annoying part is a lot of the time wp_mail doesn’t provide a useful error when this happens.

If you add:

define( 'EE_DEBUG_MESSAGES', true );

to wp-config.php and retest your messages do you see any additional messages there?

You may also need to enable WP_DEBUG to view any errors happening during the call to wp_mail (if there are any)

Viewing 3 reply threads

The support post ‘Email sending intermittently.’ 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