- Implemented email notification functionality in the NotificationService. - Added support for rendering email templates based on event types. - Created HTML templates for various notification types (security alerts, SSL events, uptime events, and system events). - Updated the dispatchEmail method to utilize the new email templates. - Added tests for email template rendering and fallback mechanisms. - Enhanced documentation to include email notification setup and usage instructions. - Introduced end-to-end tests for the email notification provider in the settings.
20 lines
862 B
HTML
20 lines
862 B
HTML
<h2 style="color: #1a1a2e; margin: 0 0 16px 0; font-size: 20px;">{{.Title}}</h2>
|
|
<p style="color: #333333; font-size: 15px; line-height: 1.6; margin: 0 0 16px 0;">{{.Message}}</p>
|
|
<table role="presentation" style="width: 100%; border-collapse: collapse; margin-top: 16px; background: #f8f9fa; border-radius: 6px;">
|
|
<tr>
|
|
<td style="padding: 12px 16px; color: #666666; font-size: 13px;">
|
|
<strong>Event:</strong> {{.EventType}}
|
|
</td>
|
|
</tr>
|
|
{{if .Domain}}<tr>
|
|
<td style="padding: 4px 16px 12px 16px; color: #666666; font-size: 13px;">
|
|
<strong>Domain:</strong> {{.Domain}}
|
|
</td>
|
|
</tr>{{end}}
|
|
{{if .ExpiryDate}}<tr>
|
|
<td style="padding: 4px 16px 12px 16px; color: #666666; font-size: 13px;">
|
|
<strong>Expiry:</strong> {{.ExpiryDate}}
|
|
</td>
|
|
</tr>{{end}}
|
|
</table>
|