Instead of using the text
and html
shorthand properties, you can manually use the content
property:
const msg = {
to: '[email protected]',
from: '[email protected]',
subject: 'Hello manual content',
content: [
{
type: 'text/html',
value: '<p>Hello HTML world!</p>',
},
{
type: 'text/plain',
value: 'Hello plain world!',
},
],
};