Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
HTML emails from Talk #2424
What is the recommended way for implementing custom email templates that include HTML? We are looking to include branding in the emails Talk generates so they look less like junk mail.
I remember briefly touching on the idea of custom email templates during our Talk implementation but I do not remember what the response was. Additionally, I am unsure how HTML within the email text itself would work since text is controlled via translation yaml files.
When I sign up for email notifications, the email I get looks like this:
It is text only and includes a very long URL directly to the comment that might look kind of spammy.
The business people are asking if the following is possible:
Hey @lriggle-strib you should be able to find information on this here: https://docs.coralproject.net/talk/integrating/notifications#customizing-notifications
Let us know if that helps!
@kgardnr Ok, strike that previous comment, I see that one of the notification templates being registered has an HTML extension. However what I'm still struggling to understand is how to make the application actually utilize the HTML template, because it appears that all the emails out of our talk application are being sent in plain text. Am I missing something?
You can override the default email templates with your own as noted here: https://github.com/coralproject/talk/blob/master/plugins/talk-plugin-notifications/server/connect.js#L16-L18
So we have a custom plugin that
We then simply have custom notification templates like this:
Also notice that we add the helper