Support

Home Forums Event Espresso Premium Confirmation Emails

Confirmation Emails

Posted: August 19, 2013 at 10:45 am


Kimber

August 19, 2013 at 10:45 am

Hello,

I have the automatic confirmation emails turned off (I think) in the general settings and in each event. However I am still getting default confirmations sent when people sign up.

Any ideas whats going on?


Josh

  • Support Staff

August 19, 2013 at 2:22 pm

Hi Kimber,

I don’t think the confirmation emails can be turned off via an option. They can be set to go out before or after payment, and if they are free events they will go out automatically. The Payment emails can be set to be turned off though.

If you’re looking to turn off emails completely there are a few hooks that can be added to your theme’s functions.php file or into a custom functions file. If these are paid for events, you could use the code that was posted in this support thread:

https://eventespresso.com/topic/combining-registration-emails-for-multiple-events/#post-51305


Kimber

August 19, 2013 at 2:47 pm

Josh,

Thanks for the reply. We don’t want any emails going out because we want to approve the person first. Any suggestions?


Sidney Harrell

August 19, 2013 at 8:56 pm

Hi Kimber,
You would add the following to your theme’s function.php file:

// do not send the registration confirmation email if emails are set to go out after payment
function alter_email_after_payment_hook() {
	remove_action('action_hook_espresso_email_after_payment','espresso_email_after_payment');
}
add_action ('action_hook_espresso_email_after_payment', 'alter_email_after_payment_hook', 9 );


Kimber

August 20, 2013 at 8:20 am

When I put in that code, it seemed to shut off the emails that we get when someone registers.


Josh

  • Support Staff

August 20, 2013 at 9:20 am

Yes, that’s what it will do. Are you looking to still send admin email notifications? Are you using the attendee pre-approval feature?


Kimber

August 20, 2013 at 9:49 am

Yes. I want to receive admin emails, I don’t want attendees getting a confirmation.


Josh

  • Support Staff

August 20, 2013 at 10:38 am

Are you using the attendee Pre-Approval feature?


Kimber

August 20, 2013 at 10:47 am

No I am not. I turned it on to see if that did the trick but nothing happened.


Kimber

August 20, 2013 at 10:56 am

If I add an attendee on the backend it will send both emails. If I add an attendee using the front end of the website, it won’t send any emails.


Josh

  • Support Staff

August 20, 2013 at 12:32 pm

What you’ll need to do is remove the above suggested code because the intended use is to stop *all* emails from going out (including admin emails).

The attendee pre-approval feature will send out a message that says “Your registration is pending for approval from event admin. You will receive an email with payment info when admin approves your registration.”

This email can be changed by copying the entire event_espresso_send_attendee_registration_approval_pending function from /includes/functions/email.php into a custom function file and overridden to either change the message or not send out the email to the registrant.


Kimber

August 20, 2013 at 2:21 pm

Hi Josh.

I did the following above, however it still take me to the payment gateway and there aren’t any emails coming through.

The only emails that do come through are when you manually add someone on the back end.


Josh

  • Support Staff

August 20, 2013 at 2:48 pm

Hi Kimber,

Once the Attendee approval feature is enabled, the events need to be set to use the feature. You’ll find a little box in the event editor on the lower right side of the event editor that lets you set events to “Pre-approval” mode.


Kimber

August 21, 2013 at 9:45 am

Josh,

I got the approval feature up. However I still am not getting any emails what so ever. Any idea?


Kimber

August 22, 2013 at 7:35 am

Any new ideas on this guys? I’ve got a client who is waiting and wondering about this. It could be a deal breaker.


Josh

  • Support Staff

August 22, 2013 at 8:05 am

You’ll need to remove the code that was set in place to disable all the emails.


Kimber

August 22, 2013 at 8:32 am

I have removed all of the code, and I am still not getting emails.


Josh

  • Support Staff

August 22, 2013 at 8:44 am

Hi Kimber,

There’s a setting in Event Espresso>General Settings under Email settings that is labeled:

Send registration confirmation emails before payment is received?

This needs to be set to Yes in order for the admin to receive an email before a payment is received.

If that doesn’t make the emails start sending, can you elaborate a bit on what code was added, removed, and where? This thread is a bit confusing because the original issue in the post was that emails were being sent, and you said

I have the automatic confirmation emails turned off (I think) in the general settings and in each event. However I am still getting default confirmations sent when people sign up.

Which seemed to indicate that you didn’t want emails to be sent when people sign up.


Kimber

August 22, 2013 at 8:48 am

Sorry for the confusion.

We want to be able to get the admin email, but we don’t want an auto confirmation sent out.

Right now I have the send registration confirmation emails before payment set to No.


Josh

  • Support Staff

August 22, 2013 at 8:53 am

In order to receive an admin email send registration confirmation emails before payment needs to be set to Yes.


Kimber

August 22, 2013 at 8:54 am

Hi Josh,

Thanks for that. How do I disable the default confirmation email?


Josh

  • Support Staff

August 22, 2013 at 9:07 am

When the attendee approval feature is turned on it automatically disables the default confirmation email and instead it sends an email that confirms that their registration has been received and is pending approval.


Kimber

August 22, 2013 at 9:09 am

We are sending confirmations by hand, however we don’t want to flood their inbox with multiple emails. Can we turn those emails off?


Josh

  • Support Staff

August 22, 2013 at 11:57 am

Hi Kimber,

While there isn’t a configurable option to turn these emails off, the function that does this is a pluggable function, meaning it can be overridden by means of a custom function.

If you open up /includes/functions/email.php and copy the function starting on line 756 and ending on line 872 into /wp-content/uploads/espresso/custom_functions.php you’ll have your own function you can modify to your client’s specifications.

(you may need to create that file if you do not have the custom files add-on)

The very last section of code there sends out the email to the attendee and can be removed while will make it so the email does not send in the case of a pre-approval registration.

The support post ‘Confirmation Emails’ 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