Support

Home Forums Event Espresso Premium Emails are not being sent out

Emails are not being sent out

Posted: July 1, 2017 at 8:52 pm

Viewing 12 reply threads


clifford choi

July 1, 2017 at 8:52 pm

All my emails are stuck at “Failed Sending, Can Be Retried” and no emails are being sent out.

With the message setting at > On a separate request, i get the following error:

I tried the suggestion of: Message Setting > On the same request

However it still does not work, I get the error message:

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. [This was after 12 hours since the message was generated]

The email address being sent from and sent to are correct. Everything was working before.

Thanks in advance!!


Josh

  • Support Staff

July 3, 2017 at 8:08 am

Hi Clifford,

Your email server may not be able to handle the name part of what’s in the To and From fields. Can you go to edit the Payment Received, Registration Approved, and Registration Pending Payment templates, for the Event admin and registrant contexts and change the shortcodes so they output the email address? Examples follow:

[CO_FORMATTED_EMAIL] change to [CO_EMAIL]

[EVENT_AUTHOR_FORMATTED_EMAIL] change to [EVENT_AUTHOR_EMAIL]

[ESPRESSO_ADMIN_FORMATTED_EMAIL] change to [ESPRESSO_ADMIN_EMAIL]


clifford choi

July 3, 2017 at 8:56 am

Hi Josh, thank you so much for helping me out.

After making the changes, I still get the following error:

After selecting all “Failed Sending, Can Be Retried” and applying “Send Now”:
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.

After selecting all “Failed Sending, Can Be Retried” and applying “Generate and Send Now”:
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.

T____T

thanks in advance!


Josh

  • Support Staff

July 3, 2017 at 9:37 am

You can install the WP Crontrol plugin and remove the other scheduled tasks. So first, install this plugin:

https://wordpress.org/plugins/wp-crontrol/

Then you go to WP > Tools > Cron Events where you’ll see a list of scheduled tasks. You’ll look for either of these two to tasks with hook names of:
AHEE__EE_Messages_Scheduler__sending
and
AHEE__EE_Messages_Scheduler__generation

Then you delete those. Then you go to Event Espresso > Messages and resend.


clifford choi

July 3, 2017 at 11:44 am

Hey Josh,

So i installed the plugin. Deleted the tasks “AHEE__EE_Messages_Scheduler__sending/generation”, then i selected all the failed ones and selected “Queued for Resending”.

This still doesn’t work. Messages in queue eventually end up in the “Failed Sending, Can Be Retried” category.

I have a screen shot of this if needed.

Any information I can provide to help give you a better diagnosis?

Thanks again Josh!


Josh

  • Support Staff

July 3, 2017 at 12:17 pm

Can you install this plugin to capture an error while sending?
https://wordpress.org/plugins/wp-mail-logging/

Also, it may help to delete the failed messages from the message queue, then try resending the registration info via the Event Espresso > Registrations page.


greyowl

July 3, 2017 at 12:53 pm

I’m leaving this thread because my problem is investigated in a split-off thread…


clifford choi

July 4, 2017 at 10:04 pm

Hi Josh,

I’ve installed the plugin and tried to “Queuing for Resend” one email and the plugin logged the following:

Is there anywhere I can click in to give you more info? Please let me know if you need more information.

Thanks!


clifford choi

July 5, 2017 at 1:44 am

I have not deleted the failed emails and tried sending again.

Reason is because I worry that if I delete, I don’t know which ones I need to send out. Also worry that even after i delete and resent, it still doesn’t work.. then I just did a lot of deleting and record keeping for nothing…

Even now, the new registrations’ emails are not being sent out.

In any case, please let me know if there’s anything I can do on my end to help with your diagnosis.

Thanks!


Josh

  • Support Staff

July 5, 2017 at 10:55 am

Hi Clifford,

Can you try deleting just one of those, then go to the Registrations list table and resend the email for just that one?


clifford choi

July 6, 2017 at 1:13 am

Hey Josh!

It worked! I’ve now deleted all emails and resent them all.

Would you have a dumbdown explanation of what went wrong? Or how can i avoid this issue next time?

Thanks!


Josh

  • Support Staff

July 6, 2017 at 7:23 am

I can only guess on this because I do not have much in the way of facts:

A change on your server environment or software stack (including potentially the the version of WordPress) doesn’t allow email addresses formatted as
{Name} {emailaddress@domain.com}
and instead only allows:
{emailaddress@domain.com}

The messages in the queue were formatted to include the name. So they needed to be deleted and regenerated to use the simpler format for the To/From fields.


clifford choi

July 6, 2017 at 8:03 am

Yes I did update WordPress.

Don’t full understand but it’s ok, appreciate it anyways!

Thank you Josh! You’re a life saver!

Viewing 12 reply threads

The support post ‘Emails are not being sent out’ 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