An e-mail should be sent to the customer when the status changes or a new message is sent.
Actual behavior:
I have created a trigger. An e-mail is also sent, but with every new message or change of status, all previous contents of the variable ticket.body are also sent in the e-mail.
Here are screenshots of the trigger and the e-mail sent:
Why the diversion of writing a public article and sending out an automated e-mail via trigger, when you can simply send an e-mail to the customer?
Customers usually don’t care for the “status” of a ticket, they want a solution to their problem. The status is a tool for the agents to know, if they have something to do, or not.