Posted: 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? |
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 |
|
|
Josh, Thanks for the reply. We don’t want any emails going out because we want to approve the person first. Any suggestions? |
|
Hi Kimber, // 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 ); |
|
When I put in that code, it seemed to shut off the emails that we get when someone registers. |
Yes, that’s what it will do. Are you looking to still send admin email notifications? Are you using the attendee pre-approval feature? |
|
|
Yes. I want to receive admin emails, I don’t want attendees getting a confirmation. |
Are you using the attendee Pre-Approval feature? |
|
|
No I am not. I turned it on to see if that did the trick but nothing happened. |
|
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. |
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. |
|
|
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. |
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. |
|
|
Josh, I got the approval feature up. However I still am not getting any emails what so ever. Any idea? |
|
Any new ideas on this guys? I’ve got a client who is waiting and wondering about this. It could be a deal breaker. |
You’ll need to remove the code that was set in place to disable all the emails. |
|
|
I have removed all of the code, and I am still not getting emails. |
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
Which seemed to indicate that you didn’t want emails to be sent when people sign up. |
|
|
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. |
In order to receive an admin email send registration confirmation emails before payment needs to be set to Yes. |
|
|
Hi Josh, Thanks for that. How do I disable the default confirmation email? |
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. |
|
|
We are sending confirmations by hand, however we don’t want to flood their inbox with multiple emails. Can we turn those emails off? |
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.