After changing template, mail is plaintext independent if configuration
Describe the bug
Due to import of attendees via CSV directly, we fill a custom reference for each attendee.
This reference shall be seen in ticket mail and ticket PDF.
After adding Your reference is: {{ticket.extReference}} in line 4 in the TICKET_EMAIL template, all tickets are sent in plaintext.
To Reproduce
- Create organization and event
- Open the attached CSV alfioInvitation.csv and set a valid mail address and save the file
- Select event and click Actions -> import attendees
- Drop the CSV file from above
- Select an existing category (Check: send tickets via email - this should be an HTML mail)
- Click Upload
- Go to Configuration -> Name of organization -> Templates -> TICKET_EMAIL
- Add the line from above and save the template
- Go back to event detail
- Click reservations and select the imported reservation id and scroll down to the bottom
- Click Send tickets vie email, check the test attendee and click send. This email is plaintext.
Expected behavior HTML ticket email, but with the additional sentence.
Screenshots
Desktop (please complete the following information):
- OS: Windows
- Browser: Firefox
- Version: 129.0.1 64-bit
Additional context
- Docker container: alfio/alf.io:latest
- Alf.io version: v.2.0-M5
Edit: I found Discussion 1292, but I restarted the docker container without change in behavior. And I don't want to change the styling - only the text.
hi @SilentResonance this is a known limitation that we will remove.
As you have noticed, currently you cannot edit the html email, so by changing the text one, the system will simply not send the html one (as the content may be no more coherent).
Once allowing the override of the html email, we will remove this limitation.
Current code that do the check is: https://github.com/alfio-event/alf.io/blob/main/src/main/java/alfio/util/TemplateManager.java#L127
Thanks for the information. Looking forward for good looking ticket mails