mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2026-08-31 19:03:45 +02:00
Add task completion mails
This commit is contained in:
@@ -86,6 +86,20 @@ export const sendUninstallWarningMail = async ({ receiver, deviceName }: {
|
||||
})
|
||||
}
|
||||
|
||||
export const sendTaskDoneMail = async ({ receiver, child, task }: {
|
||||
receiver: string
|
||||
child: string
|
||||
task: string
|
||||
}) => {
|
||||
await email.send({
|
||||
template: join(__dirname, '../../other/mail/taskdone'),
|
||||
message: {
|
||||
to: receiver
|
||||
},
|
||||
locals: { child, task, mailimprint }
|
||||
})
|
||||
}
|
||||
|
||||
export function isMailServerBlacklisted (mail: string): boolean {
|
||||
const parts = mail.split('@')
|
||||
const domain = parts[parts.length - 1]
|
||||
|
||||
Reference in New Issue
Block a user