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',
};