Posted: December 3, 2013 at 6:59 pm
|
Hi, I’m trying to send the admin confirmation email to the registration contact. This contact really just exists as answers to custom questions. I’ve tried editing includes/functions/email.php to get the registration contact address and then copy that into “send_to” below. Here is the code I have in /wp-content/uploads/espresso/custom_functions.php:
extract($atts); AND registration_id LIKE %s LIMIT 0 , 1", $registration_id ); $attendee_contact_email = $query_attendee_contact_email->attendee_contact_email; I have Event Espresso 3.1.35.2.P and WordPress 3.7.1. |
|
I think you may struggle with this. The admin email is not pluggable nor is there any hooks to add in content etc. You may be better off duplicating the function and renaming it and using that as a base to send an additional email to the user. We have some hooks that can be used for that: https://eventespresso.com/wiki/event-espresso-3-1-action-hooks/ Otherwise I would perhaps suggest contacting a developer https://eventespresso.com/developers/event-espresso-pros/ or waiting for 4.0 to come out (depending on your plugin usage as there will be no plugins initially) as that has a better messaging system in place. |
|
Thanks, Dean. I did buy one token for live support. I’m capable of most of this customization with a small amount of help. I’ve placed that above function all throughout email.php, but when I debug, I can never get the value of the variable (either the attendee or registration ID) needed for the query. |
|
Hi, I think maybe you should look at amending the espresso_prepare_admin_email function. It isn’t pluggable and will require a core file edit so updates will remove your changes, but it will allow you to do the SQL query and add in a cc to the attendee. Or at least thats one way of doing it. While we can help as best we can in support, this level of modification is not covered, not even by the Priority Support tokens. |
|
Thanks again for the help. But I’d also like a refund on the $70 for the premium support. Maybe I missed a description of what it included somewhere, but I assumed from all the logins I sent that a developer would be more fully available. |
|
Hi, I will pass this onto the sales dept. and they will get in touch with you about it. |
The support post ‘Sending Admin Email to Address in Custom Question’ 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.