mirror of
https://github.com/abhinavxd/libredesk.git
synced 2025-11-02 04:53:41 +00:00
docs: update email templating docs with complete variable reference
- adds new `Author` template var and injects it into all templates - make author fields empty for all automated system generated emails
This commit is contained in:
@@ -674,18 +674,19 @@ func (m *Manager) SendNotification(scheduledNotification models.ScheduledSLANoti
|
||||
"Priority": "",
|
||||
"UUID": appliedSLA.ConversationUUID,
|
||||
},
|
||||
"Agent": map[string]any{
|
||||
"FirstName": agent.FirstName,
|
||||
"LastName": agent.LastName,
|
||||
"FullName": agent.FullName(),
|
||||
"Email": agent.Email,
|
||||
},
|
||||
"Recipient": map[string]any{
|
||||
"FirstName": agent.FirstName,
|
||||
"LastName": agent.LastName,
|
||||
"FullName": agent.FullName(),
|
||||
"Email": agent.Email,
|
||||
},
|
||||
// Automated emails do not have an author, so we set empty values.
|
||||
"Author": map[string]any{
|
||||
"FirstName": "",
|
||||
"LastName": "",
|
||||
"FullName": "",
|
||||
"Email": "",
|
||||
},
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user