1.0.0 • Published 1 year ago

sendemailwithnode v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Node Email Sender

A simple Node.js package to send emails using Nodemailer. This package is designed to be used in server-side applications and can be easily integrated into projects that require email sending functionality.

Installation

To install the package, run the following command in your project directory:

npm install node-email-sender

Usage

Importing the Package

First, import the package into your Node.js application:

const { createServer, sendEmail } = require('node-email-sender');

Configuration

The sendEmail function accepts an options object with the following properties:

  • to: The recipient's email address.
  • subject: The subject of the email.
  • text: The plain text body of the email.
  • host: The SMTP server host.
  • authUser: The username for SMTP authentication.
  • authPass: The password for SMTP authentication.
  • fromTitle: The sender's name.

Contributing

Contributions are welcome! Please read the contributing guide to get started.

License

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

1.0.0

1 year ago