Email Templates
The Notification service uses an HTML template (EmailTemplate.html) for email notifications.
Template Structureβ
The template is a standard HTML email with:
- Responsive layout for email clients
- Branded header with AlertCalifornia styling
- Dynamic content area for alert details
- Footer with unsubscribe/settings link
Variable Substitutionβ
The template uses placeholder variables that are replaced at send time:
| Variable | Description |
|---|---|
{DateTime} | Timestamp of the alert event |
{CameraName} | Name of the camera that triggered the alert |
{Location} | Camera location description |
{AlertType} | Type/category of the alert |
{CameraLink} | Direct URL to the camera in the frontend |
Modifying Templatesβ
To update the email template:
- Edit
EmailTemplate.htmlin the Notification project - Use standard HTML email practices (inline CSS, table-based layout)
- Test with multiple email clients (Outlook, Gmail, mobile)
- Deploy the updated function app