Skip to content

Latest commit

 

History

History
21 lines (19 loc) · 431 Bytes

manual-content.md

File metadata and controls

21 lines (19 loc) · 431 Bytes

Manually Providing Content

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