From 45518cead83494783709b9004ecb3ecd172bfe7f Mon Sep 17 00:00:00 2001 From: Khushboo Verma Date: Wed, 27 Aug 2025 18:31:24 +0530 Subject: [PATCH] Fix logo and links in certificate failure email --- src/Appwrite/Platform/Workers/Certificates.php | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/Appwrite/Platform/Workers/Certificates.php b/src/Appwrite/Platform/Workers/Certificates.php index 793683a094..2138e440b6 100644 --- a/src/Appwrite/Platform/Workers/Certificates.php +++ b/src/Appwrite/Platform/Workers/Certificates.php @@ -381,19 +381,18 @@ class Certificates extends Action $template->setParam('{{error}}', \nl2br($errorMessage)); $template->setParam('{{attempts}}', $attempt); - $template->setParam('{{logoUrl}}', $plan['logoUrl'] ?? APP_EMAIL_LOGO_URL); - $template->setParam('{{accentColor}}', $plan['accentColor'] ?? APP_EMAIL_ACCENT_COLOR); - $template->setParam('{{twitterUrl}}', $plan['twitterUrl'] ?? APP_SOCIAL_TWITTER); - $template->setParam('{{discordUrl}}', $plan['discordUrl'] ?? APP_SOCIAL_DISCORD); - $template->setParam('{{githubUrl}}', $plan['githubUrl'] ?? APP_SOCIAL_GITHUB_APPWRITE); - $template->setParam('{{termsUrl}}', $plan['termsUrl'] ?? APP_EMAIL_TERMS_URL); - $template->setParam('{{privacyUrl}}', $plan['privacyUrl'] ?? APP_EMAIL_PRIVACY_URL); - $body = $template->render(); $emailVariables = [ 'direction' => $locale->getText('settings.direction'), 'domain' => $domain, + 'logoUrl' => $plan['logoUrl'] ?? APP_EMAIL_LOGO_URL, + 'accentColor' => $plan['accentColor'] ?? APP_EMAIL_ACCENT_COLOR, + 'twitterUrl' => $plan['twitterUrl'] ?? APP_SOCIAL_TWITTER, + 'discordUrl' => $plan['discordUrl'] ?? APP_SOCIAL_DISCORD, + 'githubUrl' => $plan['githubUrl'] ?? APP_SOCIAL_GITHUB_APPWRITE, + 'termsUrl' => $plan['termsUrl'] ?? APP_EMAIL_TERMS_URL, + 'privacyUrl' => $plan['privacyUrl'] ?? APP_EMAIL_PRIVACY_URL, ]; $subject = $locale->getText("emails.certificate.subject");