Skip to content

Introduce mail globals inside the config file #108

@thetutlage

Description

@thetutlage

Quite often you would want to reference certain values inside email templates. For example: The name of the brand, logo URL, footer details, and so on. Therefore, the Mail globals could be used for the same.

Define them within the config/mail.ts file and they will be available to all the templates.

  globals: {
    brandName: 'Acme Inc',
    logoUrl: 'http://localhost:3333/email_brand_logo.png',
  }

Metadata

Metadata

Assignees

Labels

Priority: MediumTry to fix the issue for the next patch/minor release

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions