Skip to main content

Custom Email Templates

Administrators can customize email notifications by creating custom HTML templates. These templates replace the default system emails while maintaining full support for dynamic variables and embedded images. For more information how to configure the custom email templates, see Configure Custom Email Templates.

Available Template Files

note

File names are fixed and can not be changed.

The system looks for templates by exact file name. If you use a different name, the template will be ignored.

Template File (EXACT NAME)EventDescription
new_account.htmlUser CreationSent when a new user account is created
forgot_password.htmlPassword ResetSent when user requests password reset
scan_task.htmlScan CompletionSent when project scan completes
update_vulnerability_project.htmlVulnerability AlertSent when new vulnerabilities are detected
task_created.htmlTask CreatedSent when a workflow task is created
task_closed.htmlTask ClosedSent when a workflow task is closed
task_reopened.htmlTask ReopenedSent when a workflow task is reopened
task_reassigned.htmlTask ReassignedSent when a task is reassigned to another user
inventory_remediation_notification.htmlRemediation RequiredSent when inventory requires remediation
inventory_review_notification.htmlReview RequiredSent when inventory requires review

Rules

RuleDescription
Subject LineMust contain Subject: prefix (case-insensitive)
Subject LocationCan be anywhere in the file (top recommended)
VariablesUse ${VARIABLE_NAME} syntax
ImagesUse cid:image_name for embedded images

Variables Reference

Common Variables

The common variables are available in all templates.

VariableDescriptionExample
${RECIPIENT_NAME}Full name of recipientJohn Doe
${RECIPIENT_FIRST_NAME}First name of recipientJohn
${RECIPIENT_LAST_NAME}Last name of recipientDoe

User Account Events

new_account.html - New User Creation

VariableDescriptionExample
${LOGIN_NAME}User's login usernamejohndoe
${USER_PASSWORD}Temporary passwordTemp@123
${RECIPIENT_FIRST_NAME}User's first nameJohn
${RECIPIENT_LAST_NAME}User's last nameDoe
${RECIPIENT_NAME}User's display nameJohn Doe
${URL}Login URLhttps://server/codeinsight

forgot_password.html - Password Reset

VariableDescriptionExample
${LOGIN_NAME}User's login usernamejohndoe
${USER_PASSWORD}New temporary passwordReset@456
${RECIPIENT_FIRST_NAME}User's first nameJohn
${RECIPIENT_LAST_NAME}User's last nameDoe
${RECIPIENT_NAME}User's display nameJohn Doe
${URL}Login URLhttps://server/codeinsight

Scan Events

scan_task.html - Scan Task Completion

VariableDescriptionExample
${PROJECT_NAME}Name of the scanned projectMyWebApp
${SCAN_SERVER_NAME}Name of the scan serverScanServer-01
${TASK_END_DATE}Scan completion date/time2025-1-15
${TASK_STATE}Scan result (true/false)true
${THROWABLE}Error details (if failed)Exception message
${CONNECTOR_ERRORS}List of connector errors[error1, error2]
${PROJECT_URL}Project URLhttps://codeinsight/FNCI#myprojectdetails
${TOTAL_FILES_SCANNED}Total number of files scanned20
${TOTAL_FILE_SIZE}Total size of project100mb
${TOTAL_INVENTORY_COUNT}Total count of inventories40
${INVENTORY_APPROVED_COUNT}Count of approved inventories15
${INVENTORY_REJECTED_COUNT}Count of rejected inventories15
${INVENTORY_REVIEW_COUNT}Count of review inventories10
${VULNERABILITY_CRITICAL_COUNT}Count of critical vulnerabilities5
${VULNERABILITY_HIGH_COUNT}Count of high vulnerabilities10
${VULNERABILITY_MEDIUM_COUNT}Count of medium vulnerabilites5
${VULNERABILITY_LOW_COUNT}Count of low vulnerabilites10
${VULNERABILITY_NONE_COUNT}Count of none/unknown vulnerabilites5
${TOTAL_VULNERABILITY_COUNT}Count of total vulnerabilites35

Vulnerability Events

update_vulnerability_project.html - New Vulnerabilities Detected

VariableDescriptionExample
${PROJECT_NAME}Project nameMyWebApp
${PROJECT_ID}Project ID123
${PROJECT_URL}URL to project detailshttps://server/...
${RECIPIENT_FIRST_NAME}Project owner first nameJohn
${RECIPIENT_LAST_NAME}Project owner last nameDoe
${RECIPIENT_NAME}Project owner display nameJohn Doe
${INVENTORIES_COUNT}Number of affected inventories5
${INVENTORY_MAP}Map of inventory details{id: {name, id}}
${VULNERABILITY_MAP}Map of vulnerability details{id: {name, severity, score, description, url, source}}
${INVENTORY_VULNERABILITIES_MAP}Inventory to vulnerability mapping{invId: [vulnIds]}

Vulnerability Map Fields:

FieldDescription
NAMECVE identifier (e.g., CVE-2025-1234)
SEVERITYSeverity level (Critical, High, Medium, Low)
SCORECVSS score (0.0 - 10.0)
DESCRIPTIONVulnerability description
URLReference URL
SOURCESource registry (NVD, etc.)

Workflow Task Events

Common Task Variables:

task_created.html

task_reopened.html

task_reassigned.html

task_closed.html

VariableDescriptionExample
${PROJECT_NAME}Project nameMyWebApp
${INVENTORY_NAME}Inventory/component namelog4j-core
${INVENTORY_URL}URL to inventory detailshttps://server/...
${TASK_TYPE}Type of taskManual Review
${TASK_SUMMARY}Task summary/descriptionReview license compliance
${TASK_PRIORITY}Task priorityHigh
${TASK_OWNER_FIRST_NAME}Task owner first nameJane
${TASK_OWNER_LAST_NAME}Task owner last nameSmith
${TASK_OWNER_EMAIL}Task owner emailjane@company.com
${RECIPIENT_FIRST_NAME}Email recipient first nameJane
${TASK_DETAILS}Task detailsThis is a testing task

Addition Variables:

task_closed.html - Task Closed

VariableDescriptionExample
${TASK_RESOLUTION}Resolution notesApproved for use
${TASK_CLOSED_BY_FIRST_NAME}Person who closed first nameAdmin
${TASK_CLOSED_BY_LAST_NAME}Person who closed last nameUser

Inventory Events

Common Task Variables:

inventory_review_notification.html

inventory_remediation_notification.html

VariableDescriptionExample
${INVENTORY_NAME}Component namelog4j-core
${PROJECT_NAME}Project nameMyWebApp
${INVENTORY_URL}URL to inventoryhttps://server/...
${RECIPIENT_FIRST_NAME}Project owner first nameJohn

Add Images

There are two methods for adding images in the email template, depending on if you use CID embedded images or external URL images.

CID Embedded Images

  • Location for image file: {codeinsightInstallPath}/email-templates/images/company_logo.png

  • Reference in template: <imgsrc="cid:company_logo"alt="Logo"width="200">

  • Supported formats: .png, .jpg, .jpeg, .gif

  • Naming: Image filename (without extension) = CID name

External URL Images

  • Reference in template: <imgsrc="https://www.example.com/banner.png"alt="Logo"width="200">

  • Supported formats: .png, .jpg, .jpeg, .gif