mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 17:08:45 +00:00
Fix logo and links in certificate failure email
This commit is contained in:
parent
3a5878890d
commit
45518cead8
1 changed files with 7 additions and 8 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue