Welcome to NodeMailerExpress! This Node.js project is my playful exploration of sending emails using Node.js and Nodemailer.
-
Clone the repository:
https://github.com/UmakanthKaspa/NodeMailerExpress.git
-
Install dependencies:
npm install
-
Set up environment variables: Create a
.env
file with:PORT=5555 EMAIL_USER=your-email@gmail.com EMAIL_PASS=your-email-password
-
Run the app:
npm run dev
-
Visit
http://localhost:5555
: Open your browser to explore the project and have some fun with emails.
- Email Sending Basics: Explored how to send emails using Node.js.
- Nodemon Basics: Figured out how to use Nodemon for automatic server restarts.
- Hover Magic with CSS: Added a little hover effect for a nicer look.
- Env File Tricks: Safely stored secrets for extra security.
- Nodemailer Skills: Explored using Nodemailer to send emails smoothly.
- Simple UI Crafting: Created a basic interface for easy experimenting.
- Home View: The starting point to explore and experiment with email sending.
- Error View: A friendly error message if something goes wrong with email sending.
- Success View: A celebration message for successful email delivery!
- Express Framework: Used Express for the web stuff in Node.js.
- Nodemailer Tool: Used Nodemailer for email magic.
- Body-Parser Helper: Made handling POST requests easier.
- Dotenv Manager: Stored secret stuff securely.
- Nodemon Buddy: Helped with automatic server restarts.
- gitignore File: Added to manage ignored files.
Thinking about adding email attachments in the future to make things even more interesting.