Skip to main content

IEmailTemplate

@webda/core


Interface: IEmailTemplate

Defined in: packages/core/src/services/mailer.service.ts:16

Interface for an email template that can render subject, html and text

Methods​

renderAll()​

renderAll(file, options): any

Defined in: packages/core/src/services/mailer.service.ts:24

Render all template variants (subject, html, text) for the given file

Parameters​

file​

string

Template file name to render

options​

any

Template variables for rendering

Returns​

any

Rendered result with subject, html and text properties