We're running a site on Silverstripe 2.4.0, and we've encountered a strange issue with email notifications sent through the site.
If we add Email::send_all_emails_to("email@example.com") to the site's _config file, emails are sent to the email address defined in the send_emails_to() ONLY, and not to the desired recipients.
If we remove send_all_emails_to(), the email notifications are sent to recipients as expected.
If we use Email::bcc_all_emails_to("firstname.lastname@example.org"), then the emails are sent to the debug address as well as to recipients as expected.
The behavior is replicated on the live site, and dev and staging versions (all running on different servers). Just wondering if anyone's encountered anything like this, and knows what might be causing the issue?
It seems quite a critical issue - it went unnoticed by the clients for a few weeks as the emails were sent to the debug address fine (so they assumed they were working fine), but never reached the desired recipients.