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

Method send

packages/emails/src/index.tsx:53–63  ·  view source on GitHub ↗
(data: DeliverEmail)

Source from the content-addressed store, hash-verified

51 }
52
53 async send(data: DeliverEmail) {
54 const { subject, component } = this.#getTemplate(data);
55
56 setGlobalBasePath(this.#imagesBaseUrl);
57
58 return this.#sendEmail({
59 to: data.to,
60 subject,
61 react: component,
62 });
63 }
64
65 async sendPlainText(options: SendPlainTextOptions) {
66 if (this.#client) {

Callers

nothing calls this directly

Calls 3

#getTemplateMethod · 0.95
#sendEmailMethod · 0.95
setGlobalBasePathFunction · 0.90

Tested by

no test coverage detected