Documentation

Node.jsCurlNextjs Demo

JS Package

Installation

npm install @emailme/emailme-js

or

yarn add @emailme/emailme-js

Usage

Add your API key to your .env or .env.local (for next.js)

EMAIL_ME_API_KEY=your-api-key

Then use the emailMe function (only on the server) for next.js checkout server functions to make this super easy.

import { emailMe } from '@emailme/emailme-js'
...
emailMe('Subject', 'Message')