From 285534a14f7f8f478a3a717db6f51a67869a1d83 Mon Sep 17 00:00:00 2001 From: Yi-Jyun Pan Date: Mon, 30 Dec 2024 18:09:22 +0800 Subject: [PATCH 1/2] fix(email): Make Bcc to an empty array --- src/Service/EmailService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Service/EmailService.php b/src/Service/EmailService.php index 1205c0f..8fdde06 100644 --- a/src/Service/EmailService.php +++ b/src/Service/EmailService.php @@ -72,7 +72,7 @@ public function send(EmailDto $emailDto): void public function sendToTest(EmailDto $emailDto): void { $emailDtoCloned = clone $emailDto; - $emailDtoCloned->setToAddress($this->testAddress); + $emailDtoCloned->setToAddress($this->testAddress)->setBcc([]); $email = $emailDtoCloned->toEmail()->from($this->fromAddress); $this->mailer->send($email); } From 19f844e28aa082470c65eccf8868a6adf0ffab0e Mon Sep 17 00:00:00 2001 From: Yi-Jyun Pan Date: Mon, 30 Dec 2024 18:13:26 +0800 Subject: [PATCH 2/2] fix(email): Remove redundant mj-preview --- templates/email/mjml/remember-to-login.mjml | 1 - 1 file changed, 1 deletion(-) diff --git a/templates/email/mjml/remember-to-login.mjml b/templates/email/mjml/remember-to-login.mjml index eb0fd5d..82c711e 100644 --- a/templates/email/mjml/remember-to-login.mjml +++ b/templates/email/mjml/remember-to-login.mjml @@ -1,6 +1,5 @@ - 資料庫練功房 | 情況報告 .highlight { color: #E74C3C; font-weight: bold; } .button { background-color: #3498DB; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px; }