• Resolved enpuzzlement2009

    (@enpuzzlement2009)


    Is there a way to include a reply email to the notifications. This way when we get a booking we can automatically hit reply and have the email go to the user who booked their appointment?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author yoancutillas

    (@yoancutillas)

    Hello, you can do that with custom code only.
    You add a Reply-To in the emails header thanks to the bookacti_email_notification_data hook. The customer email address is stored in the $tags variable.

    Thread Starter enpuzzlement2009

    (@enpuzzlement2009)

    I’m green with coding and don’t want to break my notification on our site. Any chance you could send an image of how to implement this? Just bought the ORDER FOR CUSTOMERS, very cool feature for our non-profit as we have a lot of older folks trying to use our site.

    Plugin Author yoancutillas

    (@yoancutillas)

    Hello, Thank you! Thank you for your review and feedback too.
    I cannot provide support for custom code, you would also need to maintain your custom code by your own means afterwards, it’s a double-edged blade.

    Here is a little help, add this code in your child theme’s functions.php or with a plugin such as Code Snippets:

    // Set the Reply to address to customer's when an admin receives a notification
    function my_theme_bookacti_add_reply_to( $email_data, $notification, $tags, $locale ) {
    	if( substr( $notification[ 'id' ], 0, 6 ) === 'admin_' && is_email( $tags[ '{user_email}' ] ) ) { $email_data[ 'headers' ][] = 'Reply-To: <'. $tags[ '{user_email}' ] . '>'; }
    	return $email_data;
    }
    add_filter( 'bookacti_email_notification_data', 'my_theme_bookacti_add_reply_to', 10, 4 );
    Thread Starter enpuzzlement2009

    (@enpuzzlement2009)

    Works like a charm! Thanks for the help with this!

    Plugin Author yoancutillas

    (@yoancutillas)

    You are welcome!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Reply Email’ is closed to new replies.