mailatt-cli
v0.0.0-beta.0
Published
Send email attachment
Downloads
2
Readme
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.
- To use that command, you need a transport
SMTP url
with theusername
andpassword
. - 'npm install mailatt-cli'
- Set the right configuration into
node_modules/mailatt/dist/config/transport.js
- 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'