Skip to content

Commit

Permalink
fix: Capitalise setBCC to match
Browse files Browse the repository at this point in the history
Capitalise setBCC to match SilverStripe\Control\Email\Email class
  • Loading branch information
AntonyThorpe authored Feb 14, 2025
1 parent 983c674 commit 487bd97
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Checkout/OrderEmailNotifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,21 @@ class OrderEmailNotifier
use Configurable;

/**
* bcc Confirmation Emails to Admin
* BCC Confirmation Emails to Admin
*
* @var boolean
*/
private static $bcc_confirmation_to_admin = false;

/**
* bcc Receipt Emails to Admin
* BCC Receipt Emails to Admin
*
* @var boolean
*/
private static $bcc_receipt_to_admin = false;

/**
* bcc Status Change Emails to Admin
* BCC Status Change Emails to Admin
*
* @var boolean
*/
Expand Down Expand Up @@ -132,7 +132,7 @@ public function sendEmail($template, $subject, $copyToAdmin = true): bool|string
$email = $this->buildEmail($template, $subject);

if ($copyToAdmin) {
$email->setBcc(Email::config()->admin_email);
$email->setBCC(Email::config()->admin_email);
}
if ($this->debugMode) {
return $this->debug($email);
Expand Down Expand Up @@ -295,7 +295,7 @@ public function sendStatusChange($title, $note = null): bool|string
);

if (self::config()->bcc_status_change_to_admin) {
$email->setBcc(Email::config()->admin_email);
$email->setBCC(Email::config()->admin_email);
}

if ($this->debugMode) {
Expand Down

0 comments on commit 487bd97

Please sign in to comment.