Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 422 Bytes

custom-headers.md

File metadata and controls

15 lines (13 loc) · 422 Bytes

Specifying Custom Headers

Use the headers property to specify any custom headers (note that these can also be set globally per the API specification:

const msg = {
  to: '[email protected]',
  from: '[email protected]',
  subject: 'Hello custom header',
  html: '<p>Some email content</p>',
  headers: {
    'X-CustomHeader': 'Custom header value',
  },
};