Change the sender email address for all events-ticket related emails?

Home Forums Ticket Products Event Tickets Plus Change the sender email address for all events-ticket related emails?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1271110
    Kate Guy
    Participant

    I 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”).

    #1271321
    Cliff
    Member

    Hi. 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).

    #1272385
    Kate Guy
    Participant

    I 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.

    #1272504
    Cliff
    Member

    I 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.

    #1273619
    Kate Guy
    Participant

    Thank 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??

    #1273675
    Cliff
    Member

    I’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!

    #1284467
    Support Droid
    Keymaster

    Hey 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

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Change the sender email address for all events-ticket related emails?’ is closed to new replies.