UmakanthKaspa / NodeMailerExpress

πŸš€ Just a Simple Practice Project: NodeMailerExpress! Learning to send emails with Nodemailer and adding a touch of CSS fun.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NodeMailerExpress πŸš€πŸ“§

Welcome to NodeMailerExpress! This Node.js project is my playful exploration of sending emails using Node.js and Nodemailer.

Quick Start

  1. Clone the repository:

    https://github.com/UmakanthKaspa/NodeMailerExpress.git
  2. Install dependencies:

    npm install
  3. Set up environment variables: Create a .env file with:

    PORT=5555
    EMAIL_USER=your-email@gmail.com
    EMAIL_PASS=your-email-password
  4. Run the app:

    npm run dev
  5. Visit http://localhost:5555: Open your browser to explore the project and have some fun with emails.

What's Cooking

  • 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.

Views

  • 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!

Tech Toolbox

  • 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.

Future Plans

Thinking about adding email attachments in the future to make things even more interesting.

About

πŸš€ Just a Simple Practice Project: NodeMailerExpress! Learning to send emails with Nodemailer and adding a touch of CSS fun.


Languages

Language:HTML 80.4%Language:JavaScript 19.6%