MCPcopy
hub / github.com/RedPlanetHQ/core / NullMailTransport

Class NullMailTransport

packages/emails/src/transports/null.ts:8–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6};
7
8export class NullMailTransport implements MailTransport {
9 constructor(options: NullMailTransportOptions) {}
10
11 async send({ to, subject, react }: MailMessage): Promise<void> {
12 const html = await render(react);
13 const text = toPlainText(html);
14 console.log(`
15##### sendEmail to ${to}, subject: ${subject}
16
17${text}
18 `);
19 }
20
21 async sendPlainText({ to, subject, text }: PlainTextMailMessage): Promise<void> {
22 console.log(`
23##### sendEmail to ${to}, subject: ${subject}
24
25${text}
26 `);
27 }
28}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected