tiny app for sending mail from console.
mailer [option] to@email
-d dir with files
-f one or list of files sep ","
-t text
-s subject
flag -d - is not recursive, max 10 files in directory *files are not archived
flag -t - not support a line break
config file, is config.json, may place the same dir with execute file or in home dir - .config.json - (hidden)
{
"server": "smtp.gmail.com",
"port": "587",
"from": "[email protected]",
"to": "",
"user": "[email protected]",
"pass": "",
"subject": "",
"text": "",
"attach": []
}
in config file may set all required data and after simply run mailer without flags and arguments password can set in config file or it will be asked when sending