I used this solution to send emails to additional recipients with custom fields
Add recipients from product custom fields to Woocommerce new order email notification
However I do not receive any email. I turned on debug, debug log and debug display, but it does not show any error.
I think it could be error in mail service which I use to send order emails (I use Mail.ru SMTP). However it works without the code.
The question is how to find the problem?
UPD:
I added to var_dump($recipient); die; before return $recipient; and received an error in error_log:
string(45) "order@domain.name, email@domain.name, email2@domain.name"
UPD2: I turned on email log in plugin settings, and received this technical details:
Date: Mon, 27 Apr 2020 09:56:35 +0000
To: order@domain.name, email@domain.name, email2@domain.name
From: Hello Hello <hello@domain.name>
Reply-To: A A <customer@domain.name>
Subject: [Domain.name]: New order #1234
Message-ID: <c2654ca64fd38e5061f7357d04b1XXXX@domain.name>
X-Mailer: WPMailSMTP/Mailer/smtp 1.9.0
MIME-Version: 1.0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Unfortunately I did not receive any message in any of emails.
UPD3: I installed email-log plugin to monitor email statuses, and it shows error in email which should be sent to order@domain.name, email@domain.name, email2@domain.name