0.0.0-beta.0 • Published 7 years ago

mailatt-cli v0.0.0-beta.0

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

mailatt-cli

The first purpose of this package come from the need to get daly backup to my email with attachments. Let say you need to backup a database daly and send it to the same email.

  1. To use that command, you need a transport SMTP url with the username and password.
  2. 'npm install mailatt-cli'
  3. Set the right configuration into node_modules/mailatt/dist/config/transport.js
  4. Set your email field to node_modules/mailatt/dist/config/emailFields.js

This package use nodemailer to send a template email with attachments specified with the argument --att. You can send multiple attachments by adding multiple --att

example :

$ node ./node_modules/mailatt/dist/index.js --att='node_modules/mailatt/dist/index.js'