Support

Home Forums Event Espresso Premium Email messages stuck at "Queued for Sending"

Email messages stuck at "Queued for Sending"

Posted: September 7, 2016 at 9:58 am

Viewing 16 reply threads


Miller Howard

September 7, 2016 at 9:58 am

I am having an issue with registration emails not being sent/received.

We have a Payment Received and a Registration Approved email that is supposed to go to the registrant, and a Registration Approved email that is supposed to go to the event admin. Our most recent purchase was made last night and all 3 emails are labeled “Queued for Sending”. I’ve clicked the “Send Immediately” button and get this message:

An error has occurred:
No message was sent because of problems with sending. Either all the messages you selected were not a sendable message, they were ALREADY sent on a different scheduled task, or there was an error. If there was an error, you can look at the messages in the message activity list table for any error messages.

How do we fix this?


Josh

  • Support Staff

September 7, 2016 at 10:38 am

Usually the fix is you make sure that each of the templates have valid email address shortcodes in the To: and From: fields. For example, if the From: field has [CO_FORMATTED_EMAIL], you can change it to be [CO_EMAIL], then you make sure there’s one valid email address entered in Event Espresso > General Settings > Primary Contact Email.


Miller Howard

September 7, 2016 at 11:13 am

I can’t find a clear explanation of the difference between [CO_FORMATTED_EMAIL] and [CO_EMAIL]. I would like the admin email notification to go to the author of the event, so which one should I use?


Josh

  • Support Staff

September 7, 2016 at 11:27 am

Neither, the author of the event email short code is
[EVENT_AUTHOR_EMAIL]


Miller Howard

September 7, 2016 at 11:40 am

Ok thanks, I’ve updated the shortcodes in my email templates. I am still getting the same error message when I click “send immediately” on any email “queued for sending”. What is the best way to get these emails to send using the updated template?


Josh

  • Support Staff

September 7, 2016 at 12:23 pm

You’ll need to regenerate those emails so they use the updated templates. There’s a bulk action that lets you select emails then select Generate and send now, which will re-generate those emails.


Miller Howard

September 7, 2016 at 12:44 pm

I’ve done this and still no email has been changed to “sent” or has come through.

I did just f0und out I have someone who has gotten their registration email sent about 30+ times. Their email is showing up as “queued for sending”. How do I stop this?


Josh

  • Support Staff

September 7, 2016 at 2:23 pm

Have you been able to update to WordPress 4.6.1 yet? If not, that might help things since there were a few bugs in WP 4.6 that affected sending emails.


Miller Howard

September 7, 2016 at 4:05 pm

Yes, WordPress is updated to 4.6.1 and EE is updated to 4.9.10. I’m still getting errors when I try to re-generate the messages stuck in the send queue:

An error has occurred:
The messages were not generated. This could mean there is already a batch being generated on a separate request, or because the selected messages are not ready for generation. Please wait a minute or two and try again.

And still the same error message in my first post when I click “send immediately”


Josh

  • Support Staff

September 7, 2016 at 5:58 pm

If you can completely fill out the form on this page someone from support staff can investigate further:

https://eventespresso.com/send-login-details/

and please note that the form on the page asks for temporary FTP credentials, and we’ll definitely need those for troubleshooting. If you’re unsure how to set up FTP credentials, then you can contact your host.


Miller Howard

September 8, 2016 at 9:47 am

Thanks, I’ve sent the login details. In the meantime I am deleting any new registrant emails that are in the send queue in order to stop them from being delivered to the registrant multiple times.


Josh

  • Support Staff

September 8, 2016 at 9:50 am

I went in and selected a few of the Queued for Resending emails and set them to Generate and Send Now, and there were no errors.

So one of the issues with most of Queued for Resending emails is they don’t have a From and sometimes also no To: email address. That’s a good reason to not be able to send an email right? It looks like you’ve got the templates’ To: and From: fields sorted out now. So what needs to happen to get those emails sent out now is you select them, then where it has Bulk Actions, you select Generate and Send Now.

The other cause for concern that I noticed is in the W3 Total Cache General Settings, both Database Caching and Object Caching. Those settings should both be deactivated, because those will break Event Espresso’s core functionality when activated.


Josh

  • Support Staff

September 8, 2016 at 9:50 am

I went in and selected a few of the Queued for Resending emails and set them to Generate and Send Now, and there were no errors.

So one of the issues with most of Queued for Resending emails is they don’t have a From and sometimes also no To: email address. That’s a good reason to not be able to send an email right? It looks like you’ve got the templates’ To: and From: fields sorted out now. So what needs to happen to get those emails sent out now is you select them, then where it has Bulk Actions, you select Generate and Send Now.

The other cause for concern that I noticed is in the W3 Total Cache General Settings, both Database Caching and Object Caching. Those settings should both be deactivated, because those will break Event Espresso’s core functionality when activated.


Miller Howard

September 8, 2016 at 10:15 am

Thanks, I’ve turned off Database and Object caching in the plugin.

I’m not sure what emails you were able to send without the error. I don’t see any additional emails in the Sent list. And I just selected the 3 most recent Event Admin emails in the send queue (which should have the to/from correct), and under Bulk Actions selected Generate and Send Now, and got this error:

An error has occurred:
The messages were not generated. This could mean there is already a batch being generated on a separate request, or because the selected messages are not ready for generation. Please wait a minute or two and try again.
EED_Messages – generate_now – 889


Josh

  • Support Staff

September 8, 2016 at 10:27 am

Here’s one the errors being captured in the site’s logs:

[08-Sep-2016 15:23:15 UTC] PHP Fatal error:  Uncaught exception 'phpmailerException' with message 'Invalid address: ' in /wp-includes/class-phpmailer.php:946
Stack trace:
#0 /wp-includes/pluggable.php(352): PHPMailer->setFrom('', 'South Carolina ...', false)
#1 /wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Email_messenger.class.php(357): wp_mail('brandy.mcclain@...', 'Event Payment D...', '\n<!DOCTYPE html...', Array)
#2 /wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_messenger.lib.php(624): EE_Email_messenger->_send_message()
#3 /wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Queue.lib.php(626): EE_messenger->send_message(Object(EE_Message), Object(EE_Payment_message_type))
 in /wp-includes/class-phpmailer.php on line 946

So if you have any messages that are stuck in the queue, that do not have valid from field values, you should probably just delete them. You can send new messages via the registration list table after you clear the resent queue.


Miller Howard

September 8, 2016 at 11:51 am

Yes, I understand why that particular email will not send. But I’m looking at the most recent emails in the queue and emails are still not processing as expected. Within the last hour I’ve completely disabled the cache plugin, then processed a registration and payment transaction. The registrant received the Payment Received email at 1:08pm est. However that email is still listed as Queued For Sending rather than Sent. The Modified datetime on that email is September 8, 2016 12:40 pm.


Josh

  • Support Staff

September 8, 2016 at 9:32 pm

Those more recent emails in the queue are going to end up in the same batch as the emails that can’t be sent when it comes time to send them out. You’ll need to remove those older emails from the queue.

Viewing 16 reply threads

The support post ‘Email messages stuck at "Queued for Sending"’ 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