MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / send

Method send

apps/web/mailers/NotificationMailer.ts:17–30  ·  view source on GitHub ↗
({
    to,
    text,
    html,
    ...props
  }: Options & TemplateType & { text: Function; html: Function })

Source from the content-addressed store, hash-verified

15
16export default class NotificationMailer {
17 static async send({
18 to,
19 text,
20 html,
21 ...props
22 }: Options & TemplateType & { text: Function; html: Function }) {
23 const joinedAuthors = props.authors?.join(' and ');
24 return ApplicationMailer.send({
25 to,
26 subject: `[Linen] New messages from ${joinedAuthors}`,
27 text: text(props),
28 html: html(props),
29 });
30 }
31
32 static async sendMention(props: Options & TemplateType) {
33 return NotificationMailer.send({ ...props, ...mentionsTemplate });

Callers 2

sendMentionMethod · 0.45
sendThreadMethod · 0.45

Calls 2

textFunction · 0.50
htmlFunction · 0.50

Tested by

no test coverage detected