kofe88 / GLPI-Email-Templates

For emails, rely on tables!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GLPI-Email-Templates

For emails, rely on tables!

The default GLPI template for notifications aren't exactly friendly, so I decided to search into Internet to see if I could find a ready-to-use template that I could deploy into my GLPI instance to notify users when a new ticket is opened, when a ticket is added by a technician or by the user or when the ticket is closed, sending the solution used to resolve the ticket and the satisfaction survey.

I could find some templates (available at "Useful links" sections at the bottom), but I would like a minimalist approach instead of showing all followups and tasks into a single mail. I found hmarthe/TCAT-M-osTicket-Email-Templates and really liked it, so I decided to adapt this template from osTicket to GLPI.

This template was sucessfully tested on:

  1. Microsoft Outlook 2019/2010
  2. Mozilla Thunderbird 78.3.3

Screenshots

Novo acompanhamento (New ticket)

Novo chamado (New ticket).

Novo acompanhamento (New followup)

Novo acompanhamento (New followup)/Atualização de um acompanhamento (Update of a followup).

Novo acompanhamento (New followup)

Nova tarefa (New task)/Atualização de uma tarefa (Update of a task).

Chamado solucionado (Ticket solved)

Chamado solucionado (Ticket solved).

Pesquisa de satisfação (Satisfaction survey)

Pesquisa de satisfação (Satisfaction survey).

Resposta da pesquisa de satisfação (Satisfaction survey answer)

Resposta da pesquisa de satisfação (Satisfaction survey).

Translation

These templates rely on ticket.action to adapt the message body (HTML) to correspond to the notification type (new ticket, new followup, etc), but this method rely on translated strings, e.g. to detect that the message refers to a "New ticket", the template detects it with ##IFticket.action=Novo chamado##. Novo chamado is the translation to "New ticket" in "Português do Brasil".

Another function that has depends on translated strings are ticket.isprivate, e.g. to detect that a followup or task has been marked as private, it uses the function ##IFticket.isprivate=Não##. "Não" is the translation to "No" in "Português do Brasil".

You'll need to translate all ticket.action and ticket.isprivate function calls into the template files according to your language before deploying it into your GLPI instance if you're not using the language "Português do Brasil" by default into your environment.

Installation

As cited on "Translation" section, it relies on translated strings to detect the notification type (new ticket, new followup, etc) and to detect if a task or followup has been marked as private, so you'll need to create a specific notification template for each language that you would like to support.

Tickets Template

  1. In Setup > Notifications > Notification Templates, click on Tickets.
  2. Click on Template translations > Add a New Translation.
  3. Select your language into Language dropdown, e.g. "Português do Brasil".
  4. Enter the Subject of the notification template (Default: ##ticket.action## ##ticket.title##)
  5. In Email text body, paste the content of the Tickets.txt template.
  6. In Email HTML body, click on the option "Source code" and paste the HTML body of the Tickets.html template.

Ticket Satisfaction Template

  1. In Setup > Notifications > Notification Templates, click on Tickets Satisfaction.
  2. Click on Template translations > Add a New Translation.
  3. Select your language into Language dropdown, e.g. "Português do Brasil".
  4. Enter the Subject of the notification template (Default: ##ticket.action## ##ticket.title##)
  5. In Email text body, paste the content of the Ticket Satisfaction.txt template.
  6. In Email HTML body, click on the option "Source code" and paste the HTML body of the Tickets Satisfaction.html template.

License

GNU General Public License v3.0 License.

Useful Links

  1. GLPI - Notification Tags.
  2. Template de notificações para o GLPI responsivo. Fala TI.
  3. Adicionando template de notificações via email personalizados no GLPI (Abertura, Acompanhamento e Encerramento de chamados). Nattaniel Afonso.
  4. Notificações no GLPI em HTML e CSS que funciona no Gmail. Thiago Passamani.
  5. Scripts for Email Template. Spiceworks.
  6. Free HTML Email Templates for SaaS and Startups. HTML Email Templates for SaaS and Startups.
  7. Email template. HelpDesk Help Center.
  8. Free Responsive Simple HTML Email Template. GitHub.
  9. Email Template Examples. ZendeskLabs (GitHub).

About

For emails, rely on tables!

License:GNU General Public License v3.0


Languages

Language:HTML 100.0%