- Issue created by @CondenmedDev
- πΊπΎUruguay CondenmedDev
I found a solution to include HTML tags when working with Swift Mailer.
All you need to do is mark the content as Full HTML and replace the symbols '<' and '>' in the tags with the corresponding HTML entity. For anyone who needs to do the same, I recommend writing the entire HTML content in a file and then using a find and replace tool to replace the symbols with the HTML entity.
HTML Entities:
< : & lt ; > : & gt ;
Obviously, you have to write it without spaces; I've added spaces to prevent the browser from interpreting it.
I hope my experience helps someone else. Thank you
I am facing the same issue. Emails are sent with HTML tags showing inside the email. Did you find a fix ?