import { init, nextmail } from '@nextmail/sdk' init({ apiKey: process.env.NEXTMAIL_API_KEY }) const email = await nextmail.emails.send({ from: 'Acme Billing <[email protected]>', to: '[email protected]', subject: 'Your September invoice', html: '<p>The invoice is attached.</p>',}) console.log(email.id, email.status)Install, then make one call
Install the package, then call the client from your code.
Read the docs: Install, then make one call
