1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 10:49:28 +02:00

Create send email type

Instead of using email job handler payload type
This commit is contained in:
Chocobozzz 2019-02-20 15:54:32 +01:00
parent ef80c66cea
commit dee77e767f
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 13 additions and 10 deletions

View file

@ -13,6 +13,15 @@ import { VideoBlacklistModel } from '../models/video/video-blacklist'
import { VideoImportModel } from '../models/video/video-import'
import { ActorFollowModel } from '../models/activitypub/actor-follow'
type SendEmailOptions = {
to: string[]
subject: string
text: string
fromDisplayName?: string
replyTo?: string
}
class Emailer {
private static instance: Emailer
@ -402,5 +411,6 @@ class Emailer {
// ---------------------------------------------------------------------------
export {
Emailer
Emailer,
SendEmailOptions
}