MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / send

Method send

apps/api/src/lib/email/providers/noop.ts:19–30  ·  view source on GitHub ↗
(message: IEmailMessage)

Source from the content-addressed store, hash-verified

17 public readonly providerName = "noop" as const;
18
19 send(message: IEmailMessage): Promise<IEmailResult> {
20 validateEmailMessage(message, env.EMAIL_FROM);
21 const id = `noop_${String(nowMs())}_${crypto.randomUUID().slice(0, 9)}`;
22
23 logger.info("📧 [noop] email not sent (no provider configured)", {
24 event: "email_noop",
25 to: maskEmailForLogging(message.to),
26 subject: message.subject,
27 });
28
29 return Promise.resolve({ id, provider: "noop" });
30 }
31}

Callers

nothing calls this directly

Calls 4

validateEmailMessageFunction · 0.90
nowMsFunction · 0.90
maskEmailForLoggingFunction · 0.90
infoMethod · 0.80

Tested by

no test coverage detected