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

Method send

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

Source from the content-addressed store, hash-verified

47 }
48
49 async send(data: DeliverEmail) {
50 const { subject, component } = this.#getTemplate(data);
51
52 setGlobalBasePath(this.#imagesBaseUrl);
53
54 return await this.#transport.send({
55 to: data.to,
56 subject,
57 react: component,
58 from: this.#from,
59 replyTo: this.#replyTo,
60 });
61 }
62
63 async sendPlainText(options: SendPlainTextOptions) {
64 await this.#transport.sendPlainText({

Callers

nothing calls this directly

Calls 3

#getTemplateMethod · 0.95
setGlobalBasePathFunction · 0.90
sendMethod · 0.65

Tested by

no test coverage detected