Skip to content

Latest commit

 

History

History
134 lines (73 loc) · 2.93 KB

class.MailService.md

File metadata and controls

134 lines (73 loc) · 2.93 KB

directus-monorepo ( Readme | API )


directus-monorepo > MailService

Class: MailService

Constructors

constructor()

new MailService(opts): MailService

Parameters

Parameter Type
opts AbstractServiceOptions

Returns

MailService

Source

api/src/services/mail/index.ts:36

Properties

accountability

accountability: any

Source

api/src/services/mail/index.ts:32


knex

knex: Knex< any, any[] >

Source

api/src/services/mail/index.ts:33


mailer

mailer: Transporter

Source

api/src/services/mail/index.ts:34


schema

schema: SchemaOverview

Source

api/src/services/mail/index.ts:31

Methods

getDefaultTemplateData()

private getDefaultTemplateData(): Promise< {projectColor: any; projectLogo: string; projectName: any; projectUrl: any;} >

Returns

Promise< {projectColor: any; projectLogo: string; projectName: any; projectUrl: any;} >

Source

api/src/services/mail/index.ts:99


renderTemplate()

private renderTemplate(template, variables): Promise< any >

Parameters

Parameter Type
template string
variables Record< string, any >

Returns

Promise< any >

Source

api/src/services/mail/index.ts:83


send()

send<T>(options): Promise< T >

Type parameters

Parameter
T

Parameters

Parameter Type
options EmailOptions

Returns

Promise< T >

Source

api/src/services/mail/index.ts:52


Generated using TypeDoc and typedoc-plugin-markdown