@nowak-ds/mailer
v1.1.4
Published
This module can be used to send emails.
Downloads
9
Readme
Mailer
This module can be used to send emails.
Installation
npm i @nowak-ds/mailer
Configuration
Add a file to your root folder and name it mailer-config.json. Add the following content to that file and replace the information with the correct values.
{
"port": 5010,
"host": "your-server:4010",
"smtp": {
"host": "smtp.mail.com",
"port": 465,
"secure": true,
"auth": {
"user": "[email protected]",
"pass": "savePW123"
}
}
}
port
This is the port where the application will be available.
smtp
The details of the email account that shall be used to send emails.
Execute
Simply call:
node node_modules/@nowak-ds/mailer/index.js
Or create a new script in your package.json file:
"scripts": {
"start-mailer": "node node_modules/@nowak-ds/mailer/index.js"
}