From df4c603dea022146476812cbbc2b9f8f1e5e4870 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Tue, 5 May 2020 20:22:22 +0200 Subject: Switch emails to pug templates and provide richer html/text-only versions --- server/lib/emails/contact-form/html.pug | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 server/lib/emails/contact-form/html.pug (limited to 'server/lib/emails/contact-form') diff --git a/server/lib/emails/contact-form/html.pug b/server/lib/emails/contact-form/html.pug new file mode 100644 index 000000000..0073ff78e --- /dev/null +++ b/server/lib/emails/contact-form/html.pug @@ -0,0 +1,9 @@ +extends ../common/greetings + +block title + | Someone just used the contact form + +block content + p #{fromName} sent you a message via the contact form on #[a(href=WEBSERVER.URL) #{WEBSERVER.HOST}]: + blockquote(style='white-space: pre-wrap') #{body} + p You can contact them at #[a(href=`mailto:${fromEmail}`) #{fromEmail}], or simply reply to this email to get in touch. \ No newline at end of file -- cgit v1.2.3