From ba9138f36be9313a1e33db7132c33e2911e3495e Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Fri, 10 Jul 2020 17:20:42 +0200 Subject: [PATCH] Add support for sending out news as HTML email When a news article is approved, it gets delivered as an email to the pgsql-announce mailinglist. It will render the markdown of the news article into a HTML part of the email, and include the markdown raw as the text part (for those unable or unwilling to read html mail). For each organisation, a mail template can be specified. Initially only two templates are supported, one "default" and one "pgproject" which is for official project news. The intention is *not* to provide generic templates, but we may want to extend this to certain related projects in the future *maybe* (such as regional NPOs). These templates are stored in templates/news/mail/*.html, and for each template *all* images found in templates/news/mail/img.