EmailTemplateService
class EmailTemplateService (View source)
Methods
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
bool
hasCustomTemplate(string $template)
Check if a custom template exists
array
getTemplatePaths()
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
bool
hasCustomTemplate(string $template)
Check if a custom template exists
array
getTemplatePaths()
Get available template paths for debugging