I'm trying to create an email template to send to the user when his case is closed. In this email there will be a button and if the user clicks on it the case will be reopen. Is there a way to do this? If not, are there any other ways to make the user able to reopen cases via email? Thnx
<messaging:emailTemplate recipientType="Contact"
relatedToType="Case"
subject="Olá! Seu caso {!relatedto.CaseNumber} foi resolvido." >
<messaging:htmlEmailBody >
<html>
<body>
<p>{!recipient.name},</p>
<p>Estamos passando pra dizer que o caso {!relatedto.CaseNumber}, aberto em {!relatedto.CreatedDate}, foi resolvido. Caso
não concorde com a solução, por favor clique no link abaixo. </p>
</body>
<button> Yes, I accept the solution </button>
<button> No, I would like to decline the solution </button>
</html>
<apex:includeScript/>
</messaging:htmlEmailBody>
</messaging:emailTemplate>