WooCommerce emails with multiple receivers not working anymore
-
I just came across an issue with a WooCommerce website where the ‘New order’ email was not send anymore. Debugging the issue revealed the API error message “email is not valid in to” (code “invalid_parameter”). There were multiple e-mail addresses set for the ‘New order’ e-mail (comma separated as instructed by the “?” tooltip), which were all perfectly fine.
Further debugging revealed that the email addresses (except for the first address) sent to the Sendinblue API all started with a space (even though I did not use spaces after the commas in the WooCommerce email settings).
I resolved the issue by adding $address = trim( $address ); on the line just before the switch statement in SIB_Manager::processAddressFields( $address_fields )
Emails are now send successfully again, but would be great to have this issue permanently resolved in a future plugin update. Thank you!
WooCommerce version: 7.0.0
Newsletter, SMTP, Email marketing and Subscribe forms by Sendinblue version: 3.1.52
- The topic ‘WooCommerce emails with multiple receivers not working anymore’ is closed to new replies.