@underlake/sendmail-util
v0.1.0
Published
Sendmail utility
Downloads
1
Readme
title: sendmail-util
Background
Sometimes it's useful to send an email from the command line. The ancient Linux tools like sendmail, exim, and postfix are somewhat complicated to setup because they have so many options and capabilities. When you don't want a complete SMTP server with user aliasing, relaying from selected servers, etc., when you want to just connect to the recipient's SMTP server directly and deliver the message, and you want to do it from the command line, but you don't want to use telnet :) then you might find this package useful.
Abstract
The @underlake/sendmail-util
package provides a command line interface to
the sendmail library which delivers the message.
Install
npm install -g @underlake/sendmail-util
Usage
Console help
sendmail --help
Send text message
sendmail --from [email protected] --to [email protected] --subject "text greeting" --text "hello world"
Send html message
sendmail --from [email protected] --to [email protected] --subject "html greeting" --html "hello <b>world</b>"
Multiple recipients
sendmail --from [email protected] --to [email protected] --to [email protected] --subject "multi greeting" --text "hello everyone"
Attachments
sendmail --from [email protected] --to [email protected] --subject "files" --text "see attachments" --attach /path/to/file1 --attach /path/to/file2