Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 585 Bytes

categories.md

File metadata and controls

27 lines (23 loc) · 585 Bytes

Specifying Categories

Use the categories property to provide an array of categories for your email:

const msg = {
  to: '[email protected]',
  from: '[email protected]',
  subject: 'Hello email with categories',
  html: '<p>Some email content</p>',
  categories: [
    'transactional', 'customer', 'weekly',
  ],
};

Specifying a single category is also supported:

const msg = {
  to: '[email protected]',
  from: '[email protected]',
  subject: 'Hello email with categories',
  html: '<p>Some email content</p>',
  category: 'transactional',
};