Simplemailer
Easy and simple to use mailer thats using nodemail
Install
npm install simplemailer
Test
node tests/examples.js
Easy To use
There are 4 different posibilities that you can use
- Directly pass all info as object to send method
simpleMailer;simpleMailer;
- When you dont add an text mail simplemailer will create one from you html
simpleMailer;simpleMailer;
- You can pass all required params as function with chaining
simpleMailer;simpleMailer ;
- You can even add an template path that will be used for the html and text mail
simpleMailer;simpleMailer ;
Config
Be sure you have an config.json file in your root directory with the content as discribed in config.json.example
"SIMPLEMAILER": "SERVER": "HOST":"mail.domain.com" "PORT":"587" "USERNAME":"username" "PASSWORD":"password" "SECURE": "false" "DKIM": "DOMAINNAME": "mail.domain.com" "KEYSELECTOR": "2017" "PRIVATEKEY": "./DKIM/private.key" "CACHEDIR": "/tmp" "CACHETRESHOLD": 86400 "TLS": "REJECTUNAUTHORIZED": false "FROMNAME": "from name" "FROMEMAIL": "email@domain.com" "REPLYTO": "reply@domain.com"