aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/emailer.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/emailer.ts')
-rw-r--r--server/lib/emailer.ts12
1 files changed, 11 insertions, 1 deletions
diff --git a/server/lib/emailer.ts b/server/lib/emailer.ts
index cbe384061..04e4b94b6 100644
--- a/server/lib/emailer.ts
+++ b/server/lib/emailer.ts
@@ -13,6 +13,15 @@ import { VideoBlacklistModel } from '../models/video/video-blacklist'
13import { VideoImportModel } from '../models/video/video-import' 13import { VideoImportModel } from '../models/video/video-import'
14import { ActorFollowModel } from '../models/activitypub/actor-follow' 14import { ActorFollowModel } from '../models/activitypub/actor-follow'
15 15
16type SendEmailOptions = {
17 to: string[]
18 subject: string
19 text: string
20
21 fromDisplayName?: string
22 replyTo?: string
23}
24
16class Emailer { 25class Emailer {
17 26
18 private static instance: Emailer 27 private static instance: Emailer
@@ -402,5 +411,6 @@ class Emailer {
402// --------------------------------------------------------------------------- 411// ---------------------------------------------------------------------------
403 412
404export { 413export {
405 Emailer 414 Emailer,
415 SendEmailOptions
406} 416}