EmailTemplateService
class EmailTemplateService implements EmailTemplateRendererInterface (View source)
Renders the transactional email templates under templates/emails, with custom overrides, through Twig.
Methods
Render an email template
Render new account email templates
Render password reset email templates
Render MFA verification email templates
Render username recovery email templates
Render zone access granted email templates
Render zone access revoked email templates
Render the "change request filed" email sent to each reviewer of a zone
Render the "change request decided" email sent to the requester
Check if a custom template exists
Get available template paths for debugging
Details
__construct(ConfigurationInterface $config)
No description
string
render(string $template, array $variables = [])
Render an email template
array
renderNewAccountEmail(string $username, string $password, string $fullname = '')
Render new account email templates
array
renderPasswordResetEmail(string $name, string $resetUrl, int $expireMinutes)
Render password reset email templates
array
renderMfaVerificationEmail(string $verificationCode, int $expiresAt, string|null $timezone = null)
Render MFA verification email templates
array
renderUsernameRecoveryEmail(string $name, array $usernames, string|null $loginUrl)
Render username recovery email templates
array
renderZoneAccessGrantedEmail(string $zoneName, string $recipientName, string $grantedByName, string $grantedByEmail, string $grantedAt, string|null $zoneEditUrl)
Render zone access granted email templates
array
renderZoneAccessRevokedEmail(string $zoneName, string $recipientName, string $revokedByName, string $revokedAt)
Render zone access revoked email templates
array
renderChangeRequestFiledEmail(string $zoneName, int $requestId, string $recipientName, string $requesterName, string $kind, string $comment, string $filedAt, string|null $requestUrl)
Render the "change request filed" email sent to each reviewer of a zone
array
renderChangeRequestDecidedEmail(string $zoneName, int $requestId, string $recipientName, string $status, string $reviewerName, string $reviewComment, string $decidedAt, string|null $requestUrl)
Render the "change request decided" email sent to the requester
bool
hasCustomTemplate(string $template)
Check if a custom template exists
array
getTemplatePaths()
Get available template paths for debugging