email-sender-server
v1.0.0
Published
A simple server package for sending emails using Node.js with EmailSenderSDK.
Downloads
2
Readme
email-sender-server
A simple server package for sending emails using Node.js with EmailSenderSDK.
Installation
To install the email-sender-server
package, run the following command:
npm install email-sender-server
Usage
const EmailSenderServer = require('email-sender-server');
const smtpConfig = {
host: 'smtp.example.com',
port: 587,
secure: false,
auth: {
user: '[email protected]',
pass: 'password'
}
};
const emailServer = new EmailSenderServer(smtpConfig);
emailServer.start(3000);
Replace 'smtp.example.com'
, '[email protected]'
, and 'password'
with your actual SMTP server hostname, email address, and password respectively. Additionally, adjust the port as needed.
Configuration
Before using the server, make sure to replace 'smtp.example.com'
, '[email protected]'
, and 'password'
with your actual SMTP server hostname, email address, and password respectively.
License
This project is licensed under the MIT License - see the LICENSE file for details.