Skip to the documentation
Client

Send an email

`emails.send`, and a reply in an existing thread.

Send

send-email.ts
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

reply.ts
await client.emails.send({  from: '[email protected]',  to: '[email protected]',  subject: 'Re: Tomorrow',  html: '<p>Ten works.</p>',  threadId: 'thread_…',})

Give it an address.
Watch it work.

MCP, the API and the command line come with every plan, the free one included. Connect a client and approve exactly what it reaches.

Read https://nextmail.sh/agent.md and follow it. Then tell me what I need to do to sign you in to my Nextmail mailbox. If I have no account yet, create one with my address and ask me for the code that arrives. Wait for my go-ahead before you send anything.

© 2026 Nextmail. All rights reserved.