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')
API - curl request
curl -X POST https://www.emailme.lol/api/send
--data {'subject':'Email Subject','description':'Email Body text','key':'your-api-key'}