MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / #sendEmail

Method #sendEmail

packages/emails/src/index.tsx:120–140  ·  view source on GitHub ↗
({ to, subject, react }: { to: string; subject: string; react: ReactElement })

Source from the content-addressed store, hash-verified

118 }
119
120 async #sendEmail({ to, subject, react }: { to: string; subject: string; react: ReactElement }) {
121 if (this.#client) {
122 await this.#client.emails.send({
123 from: this.#from,
124 to,
125 reply_to: this.#replyTo,
126 subject,
127 react,
128 });
129
130 return;
131 }
132
133 console.log(`
134##### sendEmail to ${to}, subject: ${subject}
135
136${render(react, {
137 plainText: true,
138})}
139 `);
140 }
141}

Callers 1

sendMethod · 0.95

Calls 2

sendMethod · 0.65
logMethod · 0.65

Tested by

no test coverage detected