Home › Forums › Ticket Products › Event Tickets Plus › Change the sender email address for all events-ticket related emails?
- This topic has 7 replies, 2 voices, and was last updated 8 years, 11 months ago by
Kate Guy.
-
AuthorPosts
-
April 18, 2017 at 8:03 am #1271110
Kate Guy
ParticipantI would like to change the default sender address that WooCommerce uses. For example, any ticket email would come from [email protected] (order receipt for ticket as well as RSVP).
Is there a hook or setting I can use to achieve this?
I’ve looked into the woocommerce_email_recipient_customer_completed_order hook, but I don’t believe it provides any sort of $order variable to check if it’s ticket related or not (it provides $recipient and $object string – which is just the status, e.g. “customer_completed_order”).
April 18, 2017 at 2:49 pm #1271321Cliff
MemberHi. If you’d like to change the email name and address for all emails sent from your WordPress install, you could use a plugin like https://wordpress.org/plugins/wp-change-default-from-email/ (third-party, not guaranteed or supported by us)
Please let me know if you instead want an a separate “from” email address and/or email name only for Tickets. If this is the case, let me know what type of tickets you use across your site (RSVP, WooCommerce, EDD, etc).
April 20, 2017 at 1:39 pm #1272385Kate Guy
ParticipantI just need to change the email address and name for RSVP tickets and WooCommerce tickets, I don’t want to change the default WordPress sender.
April 20, 2017 at 9:54 pm #1272504Cliff
MemberI got this working for RSVP tickets but not for WooCommerce tickets:
https://gist.github.com/cliffordp/35d3c0a08e53b061920976f80f0f44b4
I hope it helps get you on your way with this neat customization!
Please let me know how this goes for you.
April 24, 2017 at 12:37 pm #1273619Kate Guy
ParticipantThank you for doing that! It works for RSVP tickets like you said.
What would be the next steps you would recommend to do the same thing for WooCommerce tickets? Is there an Events Tickets action similar to “event_tickets_rsvp_tickets_generated” that I can use, but for WooCommerce generated ticket orders??
April 24, 2017 at 2:48 pm #1273675Cliff
MemberI’ve updated the gist. It works for WooCommerce now too!
It could be slightly modified if you needed RSVP tickets to have different From Address and/or From Name than WooCommerce tickets.
I hope this serves you well! 🙂
P.S. Since you’re using the RSVP tickets functionality, we’d love your support with a 5-star review of Event Tickets!
May 16, 2017 at 9:35 am #1284467Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Change the sender email address for all events-ticket related emails?’ is closed to new replies.
