Posted: October 29, 2019 at 12:22 pm
Hi Guys – So messages are not leaving the website. I get a simple generic error when I look at the message activity: *generate and send all messages on a separate requests is enabled Message was not executed successfully. The odd thing is when I create a custom message template and send the template as a test I get it every time. Its simply after a registration is processed and they attempt to send that they fail. Thanks so much for your help and assistance matt |
|
Hi Matt, This sounds like scheduled tasks are not running on your site. In which case, it may help to set the Messages Settings to Send on Same request. You can troubleshoot this further by going to your site’s Tools > Site Health page. After that page initially loads up it will try to check for scheduled tasks and if there’s a problem with running scheduled tasks the Site Health page will inform you there’s a problem along with possibly a few details about it. |
|
Hi Josh – I changed the Message Settings to SEND ON REQUEST. Here is the message in the health status relating to the EE message scheduler. Does this help with anything specific? Performance |
|
Hi Matt, Ignoring the above message setting for a second. When you tested the custom template, which message type did you test? What is set in the TO and FROM fields of the message template? |
|
I put my email in the Extra actions box “send test email to” with my email address. Works fine. The to fields are [Primary_Registrant] for receipts and approved registrations and for admins like payment received the emails are entered manually: info@alexandertechworks.com The email activity center shows all are failing regardless of TO destination. Thanks! Matt |
|
Yeah, that’s fine. The test sends generate their to and from values slightly different from live sends. It’s the Live sending I’m interested in.
There’s too much combined into one here. Event message type has multiple contexts, each of those contexts have separate templates which means they can all have different to/from settings. See HERE for more info on message contexts. Receipts do not ‘send’ to anywhere, they should NOT show in the message queue and should NOT have TO/FROM fields at all, if they theres a bigger issue here.
To give a specific example, use the ‘Registration Approved’ message type. Edit both the Registrant and Event Admi contexts and let me know what is in the TO and From fields of each context, please. The message failing to send on any of those contexts could prevent that message type from sending completely, so I need to know the exact settings/shortcodes/string in use for each.
I’m not checking for specific address etc, but if you’re using formatted email address in any of those fields, your mail server may not like them and reject the email. Your messages sound like they are correctly triggering but your mail server is refusing to send them, that’s outside of EE’s control but we can help troubleshoot and confirm, then help point you in the right direction for a solution. I also have a snippet that will display more details from the error being thrown by the email server for each email, but need the above first. |
|
ok but the message specifically states a scheduler service has failed to run. all of the settings are default. the primary registrant shortcode is added by default from the system. I apologize if I didn’t exactly type it correctly but I was doing it from memory. I have a custom template for Registration Approved but the receiver is only the primary registrant shortcode. I simply changed the styles and text in the body. I haven’t actually even added any TO admin emails yet because I want to get the system sending successfully first. |
|
That’s after you switched to send on same the request right?
Your emails are sending and getting an error from wp_mail, so if that error is from after you switched over, it can be ignored for now.
There have been 2 different ‘defaults’ within EE, because we found emails had issues with FORMATTED address, we switched the shortcode used. However if your templates were set up before that switch (it was a while ago) now, you’ll have the FORMATTED shortcodes, which is why I’m asking for specifics 🙂 |
|
can I get screenshots to you? it would be much easier than to try and explain with text |
|
Hi Matt, We recommend using a tool like snipboard.io to share screenshots. You’ll drop any snipboard sharing URLs here in a a reply (private or public reply, your choice). |
|
Sure. https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots |
|
Great thanks! Here you go. No settings were changed in the registration approved template. All are default right now: https://alexandertechworks.com/wp-content/uploads/2019/10/Screenshot-2019-10-30-10.16.06.png https://alexandertechworks.com/wp-content/uploads/2019/10/Screenshot-2019-10-30-10.16.18.png https://alexandertechworks.com/wp-content/uploads/2019/10/Screenshot-2019-10-30-10.16.48.png |
|
Ok, you can add this snippet to your site: https://gist.github.com/Pebblo/bfd6aa3b88a2459668504f75a57bc324 You can add that to a custom functions plugin on your site, we have some documentation on creating one here: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ Then test the emails sending again and you should see some additional details on this section. |
|
The support post ‘Message 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.