cli-mailer

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i cli-mailer

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

46.6 kB

Total Files

51

Last publish

Collaborators

  • whtswrng