Skip to content

Rohit Portfolio Email Server πŸ“§ A simple Node.js and Express.js server for sending email notifications from Rohit's portfolio website. Features: πŸ“§ Email Notifications, πŸ”‘ API Key Protection

Notifications You must be signed in to change notification settings

rohitvpatil0810/portfolio-mail-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

18 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Rohit Portfolio Email Server

πŸ“§ A simple Node.js and Express.js server for sending email notifications from Rohit's portfolio website.

Features

πŸ“§ Email Notifications: Sends email notifications to users who contact Rohit through the portfolio site, with notification of message to Rohit.

πŸ”‘ API Key Protection: Protects the email sending functionality with API key verification to ensure security.

Prerequisites

  • Node.js, nodemon and npm installed on your machine.

Getting Started

  1. Clone this repository to your local machine.
git clone https://github.com/rohitvpatil0810/portfolio-mail-server.git
  1. Navigate to the project directory.

    cd rohit-portfolio-email-server
    
  2. Install the project dependenceies.

  3. Set up your environment variables by creating a .env file with the following:

    [email protected]
    [email protected]
    EMAIL_PASSWORD=your_email_password
    API_KEY=your_api_key_here
    
  4. Start the server.

    npm run dev
    
  5. The server will be running on http://localhost:5000.

Usage

To send an email, make a POST request to the /email/send-notification endpoint with the required data and the API key in the headers.

Example using cURL:

curl -X POST -H "Content-Type: application/json" -H "x-api-key: your_api_key_here" -d '{
  "name": "name_of_messager",
  "email": "email_of_messager",
  "message": "message_of_messager"
}' http://localhost:3000//email/emailsend-notification

About

Rohit Portfolio Email Server πŸ“§ A simple Node.js and Express.js server for sending email notifications from Rohit's portfolio website. Features: πŸ“§ Email Notifications, πŸ”‘ API Key Protection

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published