npm install mail-tieMailTie ~~ネクタイ~~
======
Clone
git clone https://github.com/NSRare/NSGIF.gitInstall for use
npm install -g mail-tieInstall for dependencies
npm install -save-dev mail-tie
`$3
`
Send mail with config files
mail-tie -project -smtp -mail -list Send mail with options
mail-tie -project path -host -port [-secure] -user -pass -from -subject -to Make HTML with base64 URI
mail-tie -project path -web []Test demo
mail-tie -demo [ || ]
`#### Options
-project Your project folder
-demo Use demo project
-smtp SMTP config JSON file
-mail Email config JSON file
-list Email address line by line text file
-service SMTP service name service list
-host SMTP host name or ip address
-port SMTP port number
-secure SMTP service with SLTR
-user SMTP account
-pass SMTP password
-from Mail sender
-subject Mail subject
-to Mail recipients(split with ',')
`
-to address@mail.com
-to 'Some Body '
-to 'Some Body , Some Body2 '
`-web Make HTML with base64 images, you can specify the path and file name
`
-web /your/path
-web /your/path/name.html
`$3
`
var mailTie = require('../mail-tie');var project = '/path/to/your/project';
var smtp = {
service: 'gmail',
auth: {
user: 'username',
pass: 'password'
}
};
// var smtp = {
// host: 'smtp.example.com',
// port: 587,
// secure: false, // with TLS
// auth: {
// user: 'username',
// pass: 'password'
// }
// }
var mail = {
from: 'sender@email.com',
subject: 'Email title',
}
// var mail = {
// from: 'Your Name ',
// subject: 'Email title',
// }
var list = [
'who@email.com',
'Who Is '
]
mailTie.send(project, smtp, mail, list);
var file = '/path/to/the/output/folder';
// var file = '/path/to/the/output/folder/name.html';
mailTie.web(project, file);
``