1.0.1 • Published 6 years ago

cli-mailer v1.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

cli-mailer

CLI tool for sending an email message in HTML format for an array of recipients.

Usage

cli-mailer <smtps://username:password@smtp.example.com/?pool=true> <sender@email.address.com> <subject> <recipients-path.json> <message-path>

Example

cli-mailer smtps://thomas47:password47@smtp.gmail.com/?pool=true thomas47@gmail.com "Email subject" ./recipients.json ./message.txt

Content of "recipients.json":

["thomas.johnes@gmail.com", "mark.zuckerberg@facebook.com", "elon.musk@tesla.com"]

Content of "message.txt":

<strong>Hello!</strong></br>
How are u today?

First argument (SMTP config pool) is smtp pool config from node mailer.

Installation

npm install -g cli-mailer