From 13a14d1b0552d139b02c8709ea7b7c14a69849ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Tue, 12 Aug 2025 10:39:50 +0200 Subject: [PATCH 1/2] Remove temp logging --- src/Appwrite/Platform/Workers/Mails.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/Appwrite/Platform/Workers/Mails.php b/src/Appwrite/Platform/Workers/Mails.php index f07cfcf699..8e64e9034d 100644 --- a/src/Appwrite/Platform/Workers/Mails.php +++ b/src/Appwrite/Platform/Workers/Mails.php @@ -149,17 +149,6 @@ class Mails extends Action $mail->AltBody = \strip_tags($mail->AltBody); $mail->AltBody = \trim($mail->AltBody); - if (\str_contains($mail->Body, 'buttonText') || \str_contains($mail->AltBody, 'buttonText')) { - Console::warning('Email might contain placeholder. Logs relevant to verify and isolate the issue:'); - var_dump($mail->Body); - var_dump($mail->AltBody); - \var_dump($message->getPayload()); - \var_dump($message->getPid()); - \var_dump($message->getQueue()); - \var_dump($message->getTimestamp()); - Console::warning('End of placeholder detection report.'); - } - $replyTo = System::getEnv('_APP_SYSTEM_EMAIL_ADDRESS', APP_EMAIL_TEAM); $replyToName = \urldecode(System::getEnv('_APP_SYSTEM_EMAIL_NAME', APP_NAME . ' Server')); From 051b99e9ce147d89531e6d45867ae960d369aa76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Sat, 16 Aug 2025 12:49:58 +0200 Subject: [PATCH 2/2] Linter fix --- src/Appwrite/Platform/Workers/Mails.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Appwrite/Platform/Workers/Mails.php b/src/Appwrite/Platform/Workers/Mails.php index 8e64e9034d..117b689863 100644 --- a/src/Appwrite/Platform/Workers/Mails.php +++ b/src/Appwrite/Platform/Workers/Mails.php @@ -6,7 +6,6 @@ use Appwrite\Template\Template; use Exception; use PHPMailer\PHPMailer\PHPMailer; use Swoole\Runtime; -use Utopia\CLI\Console; use Utopia\Logger\Log; use Utopia\Platform\Action; use Utopia\Queue\Message;