Client
Send an email
`emails.send`, and a reply in an existing thread.
Send
const email = await client.emails.send({ from: '[email protected]', to: '[email protected]', subject: 'Tomorrow', html: '<p>Still on for ten?</p>',}) console.log(email.id, email.status)from has to be an address the person can send from. client.addresses.list() lists them.
Reply in a thread
await client.emails.send({ from: '[email protected]', to: '[email protected]', subject: 'Re: Tomorrow', html: '<p>Ten works.</p>', threadId: 'thread_…',})