Skip to content

Repository files navigation

Nodemailer Express.js App

This is a simple Express.js application that demonstrates how to use Nodemailer for sending emails.

Installation

  1. Clone this repository:

    git clone https://github.com/ali-eljerrari/nodemailer-app.git
  2. Navigate into the project directory:

    cd nodemailer-app
  3. Install dependencies:

    npm install
    or
    yarn install

Configuration

  1. Open the ./src/app.ts file and update the mailOptions object with your email configuration details such as service, user, pass, from, etc.

  2. If you are using a service like Gmail, you may need to allow less secure apps to access your account. Alternatively, you can set up an app-specific password.

Usage

  1. Start the application:

    npm run dev
  2. Open your web browser and navigate to http://localhost:3000.

  3. Fill out the form and click "Send Email" to send a test email.

Dependencies

  • Express.js: Fast, unopinionated, minimalist web framework for Node.js.
  • Nodemailer: Module for Node.js applications to allow easy as cake email sending.

License

This project is licensed under the MIT License - see the LICENSE file for details.


Feel free to customize it further based on your specific application's features and requirements.

About

No description, website, or topics provided.

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages