diff --git a/src/collections/Emails.ts b/src/collections/Emails.ts index 85e9867..c290a6a 100644 --- a/src/collections/Emails.ts +++ b/src/collections/Emails.ts @@ -117,7 +117,10 @@ export const Emails: CollectionConfig = { // Send email blast if (recipients.length > 0) { await req.payload.sendEmail({ - to: 'events@purduehackers.com', + // Real recipients are bcc'd, so the To is only the copy we keep. It + // has to be an address Email Routing delivers, or that copy goes + // nowhere. + to: 'team@purduehackers.com', bcc: recipients, subject, text, diff --git a/src/collections/Events.ts b/src/collections/Events.ts index b2e37b5..d4213ac 100644 --- a/src/collections/Events.ts +++ b/src/collections/Events.ts @@ -139,7 +139,9 @@ async function sendEventBlast(req: PayloadRequest, doc: Event): Promise const emailInfo = await getEmailData(doc) if (recipients.length > 0 && emailInfo) { await req.payload.sendEmail({ - to: 'events@purduehackers.com', + // Real recipients are bcc'd, so the To is only the copy we keep. It has to + // be an address Email Routing delivers, or that copy goes nowhere. + to: 'team@purduehackers.com', bcc: recipients, subject: emailInfo.subject, text: emailInfo.text,