Email Templates
Customize the content and appearance of system-generated emails sent by SecureLink.
Available Templates
SecureLink uses email templates for the following system communications:
User Invitation
Sent when a new user (TenantAdmin or VPN user) is invited to the platform. Contains the invitation link that directs the user to set up their Keycloak credentials.
Password Reset
Triggered when a user requests a password reset. This email is sent through Keycloak and contains a secure link to the Keycloak password reset flow.
Device Alert Notification
Sent to administrators when an edge device triggers an alert condition (e.g., going offline, config sync failure, high error rate).
Certificate Expiry Warning
Sent when a TLS, MQTT, or edge communication certificate is approaching its expiration date. Includes the certificate name, expiry date, and instructions for renewal.
Template Editor
Each template can be customized using the built-in HTML editor:
- Navigate to Settings > System > Email Templates
- Select the template you want to edit
- Modify the HTML content in the editor
- Use the Preview tab to see how the email will render
- Click Save when satisfied
Available Variables
Templates support dynamic variables that are replaced with actual values when the email is sent:
| Variable | Description | Available In |
|---|---|---|
{{userName}} | Recipient's display name | All templates |
{{tenantName}} | Name of the associated tenant | All templates |
{{deviceName}} | Edge device name or serial number | Device Alert, Certificate Expiry |
{{alertType}} | Type of alert that triggered the notification | Device Alert |
{{alertMessage}} | Detailed alert description | Device Alert |
{{invitationLink}} | URL for the user to accept the invitation | User Invitation |
{{expiryDate}} | Certificate expiration date | Certificate Expiry |
{{orchestratorName}} | Name of this orchestrator instance | All templates |
Preview your changes before saving. Use the Send Test Email button in the template editor to send a sample email with placeholder data to verify formatting and delivery.
Removing required variables (like {{invitationLink}} from the User Invitation template) will result in non-functional emails. Always ensure critical variables remain in the template.