From a94ccc42f353eb079e09174f1b47da693b2b2a2d Mon Sep 17 00:00:00 2001 From: lesion Date: Mon, 18 Oct 2021 20:43:02 +0200 Subject: [PATCH] en test email subject/content --- locales/email/en.json | 6 +++++- server/emails/test/html.pug | 3 +++ server/emails/test/subject.pug | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 server/emails/test/html.pug create mode 100644 server/emails/test/subject.pug diff --git a/locales/email/en.json b/locales/email/en.json index 61af700f..e63845b0 100644 --- a/locales/email/en.json +++ b/locales/email/en.json @@ -21,5 +21,9 @@ }, "event_confirm": { "content": "You can confirm this event at this page" - } + }, + "test": { + "subject": "Your SMTP configuration is working", + "content": "This is a test email, if you are reading this your configuration is working." + } } diff --git a/server/emails/test/html.pug b/server/emails/test/html.pug new file mode 100644 index 00000000..dc96d0b7 --- /dev/null +++ b/server/emails/test/html.pug @@ -0,0 +1,3 @@ +extends ../layout.pug +block content + p !{t('test.content', { config, user })} diff --git a/server/emails/test/subject.pug b/server/emails/test/subject.pug new file mode 100644 index 00000000..25a5edc1 --- /dev/null +++ b/server/emails/test/subject.pug @@ -0,0 +1 @@ +| [#{config.title}] #{t('test.subject')}