Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After changing template, mail is plaintext independent if configuration #1420

Open
SilentResonance opened this issue Nov 2, 2024 · 2 comments

Comments

@SilentResonance
Copy link

SilentResonance commented Nov 2, 2024

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

  1. Create organization and event
  2. Open the attached CSV alfioInvitation.csv and set a valid mail address and save the file
  3. Select event and click Actions -> import attendees
  4. Drop the CSV file from above
  5. Select an existing category (Check: send tickets via email - this should be an HTML mail)
  6. Click Upload
  7. Go to Configuration -> Name of organization -> Templates -> TICKET_EMAIL
  8. Add the line from above and save the template
  9. Go back to event detail
  10. Click reservations and select the imported reservation id and scroll down to the bottom
  11. 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.

@syjer
Copy link
Member

syjer commented Nov 9, 2024

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

@SilentResonance
Copy link
Author

Thanks for the information.
Looking forward for good looking ticket mails

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants