Email notification is sent to the admin instead of the customer
-
When the order status changes and an email notification should be sent to the customer, the email is instead delivered to the store administrator.
We analyzed the code in the following file:
bp-custom-order-status-for-woocommerce/src/emails/class-wcbv-order-status-email.php
Our findings:
- The email notification is sent using the
WC_Email->send()
function. - The variable
$recipient_email
, which should contain the customer’s email ($order->get_billing_email()
), may be overwritten by another value. - The plugin calls the function
$this->getStatusRecipients($status)
, which may add the administrator as a recipient.
Questions and support request:
- Can you confirm whether this issue is known and if a fix is available?
- How can we ensure that the email is always sent only to the customer and not to the administrator?
- Is it possible that a recent update changed this logic?
We appreciate your help and look forward to your response.
- The email notification is sent using the
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.