https://github.com/priyangsubanerjee/onemail
Onemail is a simple, reliable API for sending html temaplates directly from your frontend app to your users' inbox.
https://github.com/priyangsubanerjee/onemail
api nextjs rest
Last synced: 4 months ago
JSON representation
Onemail is a simple, reliable API for sending html temaplates directly from your frontend app to your users' inbox.
- Host: GitHub
- URL: https://github.com/priyangsubanerjee/onemail
- Owner: priyangsubanerjee
- Created: 2023-05-28T08:43:16.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-02T10:43:24.000Z (about 3 years ago)
- Last Synced: 2025-03-17T14:44:44.813Z (over 1 year ago)
- Topics: api, nextjs, rest
- Language: JavaScript
- Homepage: https://onemail.vercel.app
- Size: 181 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Onemail
Onemail is a simple, reliable API for sending html temaplates directly from your frontend app to your users' inbox.

## Getting Started
- Generate credential from [here](https://onemail.vercel.app/)
- Install `node-fetch` package
```
const sendEmail = () => {
let endpoint = "https://onemail.vercel.app/api/send";
let params = {
to: "",
subject: "",
text: "",
html: "",
secret: ""
}
await fetch(endpoint, {
method: "POST",
body: JSON.stringify(params)
});
// email will be delivered in the background
}
```