How can I add logo or image on email template

AI-generated summary

How to Add a Logo or Image to an Email Template

Levi_Nguyen is experiencing an error when trying to save an email template with a logo or image, receiving the message “Sorry, an error has occurred.” They have tried following the guide on customizing specific email templates, but it didn’t work out.

osioke suggests checking the browser console for errors and ensuring the Discourse version is up-to-date. Levi_Nguyen is currently using version 2.4.0 and shared a screenshot of the error. osioke recommends updating to the latest Discourse version, taking a backup of the site with uploads first.

Hi guys,
I would like to design email templates with logo or image. But, every time I try to save my code, an error message like :" Sorry, an error has occured..". Please assist me with this issue and kindly let me know how to add image to email templates.

Thank you

Hello Levi, welcome here!

Where are you working to edit the email templates, are you using this howto?

Yes, I tried that ealier, but, it didn’t worked out. Every time I entered code, it cannot be saved and an error message like :" Sorry, an error has occured…". At the first line, its appear alert about the code as well, I have attached the image

Are you on the latest Discourse update? Also, do you see any errors in your browser console when you try to save?

Also, I am using the 2.4.0 version and here is the error I got and I think I haven’t updated to the latest version yet. Do you think it could be the root cause of the issue, may I ask?

I can’t say for sure, but I am not seeing reports of this issue on the latest Discourse version, so maybe try an update?

Do take a backup of your site with uploads first though.