From d0955f4f698c87688199ad347005fda221e1faf2 Mon Sep 17 00:00:00 2001 From: Mahfuzul Alam <33813593+MahfuzulAlam@users.noreply.github.com> Date: Mon, 1 Apr 2024 12:09:20 +0600 Subject: [PATCH] Fix: Contact listing owner email reply to issue (#1712) --- includes/classes/class-ajax-handler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/classes/class-ajax-handler.php b/includes/classes/class-ajax-handler.php index 6c0a24e12d..32afd1127b 100644 --- a/includes/classes/class-ajax-handler.php +++ b/includes/classes/class-ajax-handler.php @@ -1316,7 +1316,7 @@ function atbdp_email_listing_owner_listing_contact() { $subject = strtr( $contact_email_subject, $placeholders ); $message = strtr( $contact_email_body, $placeholders ); $message = nl2br( $message ); - $headers = ATBDP()->email->get_email_headers(); + $headers = ATBDP()->email->get_email_headers( [ 'name' => $name, 'email' => $email ] ); $message = atbdp_email_html( $subject, $message ); // return true or false, based on the result $is_sent = ATBDP()->email->send_mail( $to, $subject, $message, $headers ) ? true : false;