diff --git a/src/server/mailer/pate.ts b/src/server/mailer/pate.ts index 32bd7d7b..e0573cce 100644 --- a/src/server/mailer/pate.ts +++ b/src/server/mailer/pate.ts @@ -1,5 +1,7 @@ import axios from 'axios' +import logger from '../util/logger' + import { PATE_URL } from '../util/config' import { inProduction, inStaging } from '../../config' @@ -31,6 +33,12 @@ const sendEmail = async (targets: string[], text: string, subject: string) => { settings, } + logger.info(`Sending emails to ${targets.length} recipients`, { + recipients: targets, + subject, + text, + }) + await pateClient.post('/', mail) }