aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-05-05 20:22:22 +0200
committerRigel Kent <par@rigelk.eu>2020-05-08 15:31:51 +0200
commitdf4c603dea022146476812cbbc2b9f8f1e5e4870 (patch)
treec0d27576fb6711b4b64d2186e8dca3f04b9b1dfe /shared/models
parent91b8e675e26dd65e1ebb23706cb16b3a3f8bcf73 (diff)
downloadPeerTube-df4c603dea022146476812cbbc2b9f8f1e5e4870.tar.gz
PeerTube-df4c603dea022146476812cbbc2b9f8f1e5e4870.tar.zst
PeerTube-df4c603dea022146476812cbbc2b9f8f1e5e4870.zip
Switch emails to pug templates and provide richer html/text-only versions
Diffstat (limited to 'shared/models')
-rw-r--r--shared/models/server/emailer.model.ts10
1 files changed, 7 insertions, 3 deletions
diff --git a/shared/models/server/emailer.model.ts b/shared/models/server/emailer.model.ts
index 2d8feda81..069ef0bab 100644
--- a/shared/models/server/emailer.model.ts
+++ b/shared/models/server/emailer.model.ts
@@ -1,8 +1,12 @@
1export type SendEmailOptions = { 1export type SendEmailOptions = {
2 to: string[] 2 to: string[]
3 subject: string
4 text: string
5 3
6 fromDisplayName?: string 4 template?: string
5 locals?: { [key: string]: any }
6
7 // override defaults
8 subject?: string
9 text?: string
10 from?: string | { name?: string, address: string }
7 replyTo?: string 11 replyTo?: string
8} 12}