Support

Home Forums Event Espresso Premium Registration Approved Messages Not Sent

Registration Approved Messages Not Sent

Posted: April 24, 2017 at 6:51 pm


Joseph Citarello

April 24, 2017 at 6:51 pm

Hi,

I have an event requiring registration approval. I realized I hadn’t approved them “Approve and Notify” selected, so today I attempted to resend them. Currently, all the messages intended for the Primary Registrant have failed, but all the messages for the Event Admin went out.

This has never happened before, and there was a WordPress update to 4.7.4 on 4/20. I’ve had a number of other messages created and sent since then, but they’ve been for a another event not requiring approval.

For kicks, I did try changing the “Send as Separate Messages” option, but that was no help. When using the “Send Immediately” button, I am seeing the following error…

“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.”

Please advise, thanks.


Josh

  • Support Staff

April 25, 2017 at 4:57 pm

Hi there,

Can you go to Event Espresso > Messages > Default Message Templates then go to edit the template for the message that’s not sending, then check what’s set for the To: and From: fields? If those are filled out correctly,
the To: field will have [RECIPIENT_EMAIL],
and the From: field will have [CO_EMAIL] or a valid email address.


Joseph Citarello

April 25, 2017 at 5:24 pm

Hi,

Just fyi, but I am using a custom template that I have used many, many times before. The content of those fields in the “Primary Registrant” version of the template are as follows:

To: [PRIMARY_REGISTRANT_EMAIL]

From: [CO_FORMATTED_EMAIL]

Perhaps you can explain the difference between Primary_Registrant_Email and Recipient_Email for me?

Regardless, I changed the “To” field in the Primary Registrant template from Primary_Registrant_Email to Recipient_Email and used the “Send Immediately” option and received the following error again:

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.

Also of note…when I select the Information icon for any of the failed messages, I do see the correct email addresses there.

“Message was not executed successfully.
Messenger and Message Type were valid and active, but the messenger send method failed.
The email did not send successfully.
The WordPress wp_mail function is used for sending mails but does not give any useful information when an email fails to send.
It is possible the “to” address (jcitarello@gmail.com) or “from” address (Ravish Austin ) is invalid.

“Ravish Austin” is obviously not our from email, but the shortcode CO_FORMATTED_EMAIL is what has always been used in that field without fail before. I did try changing it to co_email per your suggestion, but the error when I use “Send Immediately” is the same.

Please advise, thanks!


Joseph Citarello

April 25, 2017 at 5:28 pm

To be sure…the value of “Primary Contact Email” under Event Espresso -> General Setting is our valid email address.

Refer to:
https://eventespresso.com/wiki/messages-system-working-with-message-contexts/


Joseph Citarello

April 25, 2017 at 5:36 pm

Another update…as a test, I went ahead and typed in our valid email address in the “From” field of the template. Same error(s), and the info screen still displays “…from” address (Ravish Austin ) is invalid.”.


Joseph Citarello

April 25, 2017 at 5:57 pm

I think I just figured this out. I have my custom template selected in the “Registration Approved” email notifications. Given that the approval is still pending payment, I am guessing the “Registration Approved” template to that I have changed to my custom template is not the one being sent. Please explain if I need to make some adjustments to this, perhaps the “Registration Pending Payment” template needs some adjusting? It is currently set to “Global”, but the default template for it appears to have correct values for “From” and “To”.

You may want to log in and have a poke around. Arg.


Joseph Citarello

April 25, 2017 at 6:00 pm

Just had another look…the failed messages all have “Registration Approved” for their “Message Type”, and “Primary Registrant” as the “Context”.


Joseph Citarello

April 25, 2017 at 8:31 pm

I got it sorted, here’s the synopsis:

The event I created was RSVP only w/ approval. By mistake, I was changing the registrations to “Approved” instead of “Set Registrations to Pending Payment and Notify” as I should have been doing. For reasons unknown, the system must have caught this and was not allowing the “approved” messages to go out to the folks that RSVP’s before payment was made. A “lucky” thing on my part I suppose. That said, I think the error handling for this situation could be improved, and perhaps a more accurate description of why what I was experiencing was taking place.

Anyway, thanks for the attempt at assisting. Consider it sorted. Once I changed those registration statuses to “Set Registrations to Pending Payment and Notify” the messages were sent as expected without error.


Tony

  • Support Staff

April 26, 2017 at 3:24 am

Perhaps you can explain the difference between Primary_Registrant_Email and Recipient_Email for me?

It depends on the context the messages is used in, the Primary_Registrant_Email will always be the email address of the primary registration. The Recipitent_Email is the email address of the current recipient which may or may not also be the primary registrant.

If you within the Primary Registrant context [PRIMARY_REGISTRANT_EMAIL] should be fine.

Another update…as a test, I went ahead and typed in our valid email address in the “From” field of the template. Same error(s), and the info screen still displays “…from” address (Ravish Austin ) is invalid.”.

Sounds like your resending the same message after it has been generated and is in the message queue (Ravit Austin would have changed to your co email address if the email was regenerated)?

When a message is queued it is first queued for generating, that step uses the current message templates to build out the message using the current shortcodes/settings etc.

Once the message have been generated its saved, if you resend that message you don’t regenerate and send, you resend the currently generated messages. So changing a template and then clicking to resend a message through the queue will not show your changes.

The event I created was RSVP only w/ approval. By mistake, I was changing the registrations to “Approved” instead of “Set Registrations to Pending Payment and Notify” as I should have been doing. For reasons unknown, the system must have caught this and was not allowing the “approved” messages to go out to the folks that RSVP’s before payment was made. A “lucky” thing on my part I suppose. That said, I think the error handling for this situation could be improved, and perhaps a more accurate description of why what I was experiencing was taking place.

Whilst I’m glad you have it working, I suspect there is still an issue here.

Event Espresso should not prevent the Registration Approved message from sending if you have manually set the registration to Approved and triggered the notifications. You can Approve a registration regardless of its payment status, incomplete transactions do not prevent reg approve messages on a registration.

Have you confirmed that Registration Approved messages are working as expected? If not I’d recommend adding a test registration and running through the steps of setting it to pending payment, then pay for the registration and confirm the Approved messages is sent (or trigger it manually).


Joseph Citarello

April 26, 2017 at 6:18 pm

Although the payment pending messages are going out, the “Registration Approved” messages are still failing after payment for the “Primary Registrant” context. What do you suggest I do next?

Thanks!


Joseph Citarello

April 26, 2017 at 6:51 pm

Another update: received a new registration today from start to finish, and the “Registration Approved” message failed just like the others. I am beginning to suspect the custom message template is failing and/or corrupt. The error associated with the failed message reads:

Message was not executed successfully.
Messenger and Message Type were valid and active, but the messenger send method failed.
The email did not send successfully.
The WordPress wp_mail function is used for sending mails but does not give any useful information when an email fails to send.
It is possible the “to” address (xxxxxx@xxxxxx.org) or “from” address (ravishatx@gmail.com) is invalid.

Note that I changed the “From” address from [CO_FORMATTED_EMAIL] to our valid organization’s email in the correlating template.


Tony

  • Support Staff

April 27, 2017 at 5:53 am

If you test the default (unedited) Registration Approve message template does that work?


Joseph Citarello

April 27, 2017 at 10:49 am

Tony,

That was actually my next step. I set the event back to the default template as a test, and it did in fact work just fine. Going under the assumption that my custom template must be “corrupted” in some way, I went ahead and deleted it, recreated, reassigned it to the event and now the messaging is working as expected. I can’t even imagine what it was about that particular template that got “horked”. It was nothing more than a copy of the template I had used previously, only with some of the content updated.

Now, given the issues I’ve had with this, I am going to take a stab at a more generic “Registration Approved” template that we can use for the majority of our events without modification. One thing I would need to do that is a custom field (shortcode) that could be added to include a bit of information specific to each event. Perhaps you can tell me if this is possible and how I might be able to do it so the custom field / shortcode can be added to my custom message template. Our events sometimes come with different rules or other information that needs to be conveyed to our attendees. Is this possible? If so, how?

Another thing I’d like to have is this…in favor of keeping the venue information private until payment is made, we don’t always include the venue information with our events. Is there a way to deselect the venue display on either a “per-event” basis, or can I disable that on all events and use venue shortcodes in the events where I want to include it? I did a bit of searching this morning, but I am coming up empty.

Thanks!


Tony

  • Support Staff

April 28, 2017 at 4:58 am

One thing I would need to do that is a custom field (shortcode) that could be added to include a bit of information specific to each event. Perhaps you can tell me if this is possible and how I might be able to do it so the custom field / shortcode can be added to my custom message template. Our events sometimes come with different rules or other information that needs to be conveyed to our attendees. Is this possible? If so, how?

Imo you would be better using custom templates for this, however you can include a custom field that you set in the event itself within the messages using:

[EVENT_META_*{meta_key}]

So if you create a custom field call ‘rules’ you would have:

[EVENT_META_*rules]

Event Espresso will then check the event object for a custom field and output the contents of that field in place of the shortcode.

Is that what you are looking for?

(Adding your own shortcodes to the messages system is also possible but more involved, take a look here: https://gist.github.com/Pebblo/e87cc8e30c4848dcdfe2)

Another thing I’d like to have is this…in favor of keeping the venue information private until payment is made, we don’t always include the venue information with our events. Is there a way to deselect the venue display on either a “per-event” basis, or can I disable that on all events and use venue shortcodes in the events where I want to include it? I did a bit of searching this morning, but I am coming up empty.

We don’t have an option to remove the venue info and only show it for select events, however if your events are public you could set the Venues to be privately published.

That will remove the venues details from the event pages for any users that are not logged into the site but I’m not sure if you require your users to log in or not so I don’t know if that will work.


Josh

  • Support Staff

April 28, 2017 at 7:18 am

If they do log into the site, you can make sure that the users’ role does not have the ee_read_private_venues capability. This way if they are logged in they will not see the venue information if the venue is Privately published.


Joseph Citarello

April 29, 2017 at 8:44 am

Since we don’t allow the public to log in to our site, making the venue listing private works like a charm. I have also tested the custom field option and that also is working as expected. Thanks for both of these tips!

One more question before I get out of your hair…Is there an easy way to prevent an event from coming up in the default event list(s)? Some of our events our private and although we do need to provide a link for the event for registration purposes, we don’t want the event coming up on the event list and/or /events page. If there’s a simple way to do this, please let me know.

Thanks!


Josh

  • Support Staff

May 1, 2017 at 4:01 pm

Here’s a link to a stackexchange thread that shows how to exclude a WP post from an archive, which is the same thing as excluding an Event Espresso event post from an event list:

https://wordpress.stackexchange.com/a/99687

in that first example you’ll see that the post has an ID of 123, you’ll swap in the post ID of the event that you want to exclude from the list.

e.g. if event IDs 456 and 487 need not be displayed, you’ll add the following code to a site specific plugin:

function wpse99672_filter_pre_get_posts( $query ) {
    if ( ! is_singular() && $query->is_main_query() ) {
        $query->set( 'post__not_in', array( 456, 487 ) );
    }
}
add_action( 'pre_get_posts', 'wpse99672_filter_pre_get_posts' );

The support post ‘Registration Approved Messages Not Sent’ 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