This module is a thin wrapper for the JavaScript MsgBase
class for sending email messages from UNIX system components that utilize sendmail
or mail
commands to send mail to the system administrator.
This module can emulate either sendmail or mail/mailx command behavior.
The supported command-line syntax:
path/to/sendmail.js [-options] [--] <recipient> [recipient][...]
Option | Description |
---|---|
– | Stop option parsing, all remaining arguments treated as recipients |
-v | Increase verbosity of output |
-F | Specify From name (only in sendmail mode) |
-r or -f | Specify From email address |
-s | Specify message Subject (only in semdmail mode) |
-t | Parse recipients from message header fields read from stdin |