Support

Home Forums WP User Integration Cancellation Email

Cancellation Email

Posted: April 15, 2014 at 2:25 pm

Viewing 5 reply threads


Trevis

April 15, 2014 at 2:25 pm

Where would I look to add some text to the event cancellation email, as well as have an email sent to another email address, other than the attendee that is canceling and the admin!


Tony

  • Support Staff

April 16, 2014 at 3:40 am

Is this the cancellation email sent when cancelling though the My Events page?

If so this is within the my_events_page.php file, from reading your previous thread it appears you have already modified/moved this file. So within that modified version around line 247 you should find the espresso_send_attendee_cancel_notification() function.

Add text to the body of the email using the $att_email_body variable.

Sending to another email address my get a little more tricky depending on how/where you have this other email address stored?


Trevis

April 17, 2014 at 8:12 am

Cool, found the email body variable and added my text, thanks!

The other email address I’d like to send to is a Gmail address.


Lorenzo Orlando Caum

  • Support Staff

April 17, 2014 at 12:09 pm

Hello,

Try setting up a private email alias that forwards messages received to other email addresses.


Lorenzo


Trevis

April 17, 2014 at 1:56 pm

I see what you’re saying—will try that out. Where would I then add the additional email address in the code so it gets sent to the admin as well as the alias I set up?


Tony

  • Support Staff

April 18, 2014 at 6:24 am

Hi Trevis,

Same file once again my_events_page.php

If you look around line 286 (you have modifications so may be different):

wp_mail($org_options['contact_email'], stripslashes_deep(html_entity_decode($admin_email_subject, ENT_QUOTES, "UTF-8")), stripslashes_deep(html_entity_decode(wpautop($admin_email_body), ENT_QUOTES, "UTF-8")), $headers);

That’s the command to send the admin email. Simply copy that to line below and add the email you wish to send to in place of $org_options[‘contact_email’]. So for example

wp_mail('mycustom@email.com', stripslashes_deep(html_entity_decode($admin_email_subject, ENT_QUOTES, "UTF-8")), stripslashes_deep(html_entity_decode(wpautop($admin_email_body), ENT_QUOTES, "UTF-8")), $headers);

That will then also send the cancellation email to the address mycustom@email.com


Trevis

April 19, 2014 at 12:36 pm

Perfect, thanks so much!

Viewing 5 reply threads

The support post ‘Cancellation Email’ 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