This is a simple, fast, and secure email sender built with Next.js and Resend. It provides a user-friendly interface for sending emails using the Resend API.
- Send emails using Resend API
- WYSIWYG editor for composing email body
- Responsive design
- Environment variable configuration for easy setup and deployment
Before you begin, ensure you have met the following requirements:
- You have a Resend account and API key
- You have Node.js installed (version 14.x or later)
- You have npm or yarn installed
-
Clone the repository:
git clone https://github.com/madegit/next-resend.git cd next-resend
-
Install the dependencies:
npm install # or yarn install
-
Set up environment variables:
Copy the
.env.example
file to.env.local
and fill in your values:cp .env.example .env.local
Then edit
.env.local
with your actual values:RESEND_API_KEY=your_resend_api_key_here [email protected] [email protected]
To run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
You can deploy this app to various platforms. Here are instructions for deploying to Vercel:
-
Push your code to a GitHub repository.
-
Go to Vercel and sign up or log in.
-
Click on "New Project" and import your GitHub repository.
-
In the "Environment Variables" section, add the following variables:
RESEND_API_KEY
FROM_EMAIL
NEXT_PUBLIC_FROM_EMAIL
-
Click "Deploy" and wait for the deployment to complete.
Contributions to this project are welcome. Please ensure to update tests as appropriate.
If you have any questions, feel free to reach out to me on Twitter @madethecreator.