npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

nodemailer-cli-ng

v3.0.4

Published

A command line interface for sending email, wrapped around nodemailer.

Downloads

13

Readme

nodemailer-cli-ng

NPM Version Build Status NPM Downloads

This project has been forked from the original nodemailer-cli and updated to latest NPM npackages. original project

A command line interface for sending email, wrapped around nodemailer.

Installation

Install the module globally to expose the nodemailer command to your environment.

npm install -g nodemailer-cli-ng

Usage

$ nodemailer --help

Usage: nodemailer <to> <from> [bodyText] [options]

to           Email address, or comma separated list of email addresses to send mail to.
from         Email address that the message should be from.
bodyText     The plaintext message body.

Options:
   -t, --service    The nodemailer service identifier, if any.
   -u, --username   The SMTP username to use when authenticating.  [local_user_name]
   -p, --password   The plain-text password to use when authenticating.
   -s, --server     The SMTP server that mail will be delivered to.
   -r, --port       The port to use when contacting the SMTP server.
   -n, --nossl      If set, SSL will not be used when sending mail.
   -N, --notls      If set, STARTLS will not be used when sending mail.
   -x, --proxy      If set, a http or socks5/socks4 proxy will be used when sending mail.
   -i, --ignorecert If set, The TLS certification will not be validated.
   -j, --subject    The string to be used as the email's subject.
   --cc             An email address to Carbon Copy. List multiple recipients by appending multiple --cc parameters.
   --bcc            An email address to Blind Carbon Copy. List multiple recipients by appending multiple -bcc parameters.
   --replyTo        An email address that should receive replies if a recipient replies to your message.
   --body           A file to use as the message body.
   --attachment     A path to a file that should be attached. List multiple attachments by appending multiple --attachment parameters.
   -v, --version    Print version and exit.

Environment Variables

Some environment variables can be used in place of CLI options. CLI options override these environment variables, if used, so these can be thought of as defaults.

  • SMTP_SERVER The hostname of the SMTP server to be used.

  • SMTP_PORT The port on the SMTP server that should be connected to.

  • SMTP_USERNAME The username to use when authenticating.

  • SMTP_PASSWORD The password to use when authenticating.

  • SMTP_USE_SSL Set this to a truth-y value to use SSL.

  • SMTP_USE_TLS Set this to a truth-y value to use TLS (STARTTLS)

  • SMTP_SERVICE_NAME This is one of nodemailer's service identifiers, if you

    want it to configure itself automatically.

History

  • v3.0.0

    • Update to nodemailer 6.4.11 and add proxy options
  • v2.2.8

    • Fixed chalk not using chalk.default in /bin/nodemailer.js
  • v2.2.7

    • Updated base nodemailer to 4.6.0
    • Minor changes
  • v2.2.6

    • Updated base nodemailer to 4.4.1
    • Updated ALL dev dependencies to latest available from npm-dview
  • v2.2.4

    • fixed README issues
  • v2.2.0

    • Updated non-dev npm dependencies
  • v2.1.1

    • Updates nodemailer dependency — @mistralol
    • Moves devDependencies out of dependencies — @fardog
  • v2.1.0

    • Updates to support multiple --attachment parameters — @mistralol
  • v2.0.1

    • Fixes typo that would cause env vars to be ignored for useTLS — @mistralol
  • v2.0.0

    • Package Updates, fixes — @mistralol, #6
      • Increased minimum node version to 4
      • Added option to ignore STARTTLS
      • Added option to ignore certificate
      • Fix missing server alias from the command line
      • Bring all deps up to current versions
    • Reformat README — @fardog
  • v1.0.3

    • Fixes undefined being passed for auth when no auth is specified. Thanks

      to @mistralol.

  • v1.0.2

  • v1.0.1

    • Updates dependencies and adds dependency badge.
  • v1.0.0

    • Adds linter, gulp for running tests.
  • v0.3.0

    • Adds tests, and moves to a more test-able architecture.

      Replaces nomnom with minimist, and adds a custom validator for CLI options.

  • v0.2.0

    • Adds additional fields: cc, bcc, replyTo. Allows multiple emails as a

      comma-separated list in fields where it's sensible.

  • v0.1.2

    • Adds preferGlobal to the package, to warn if installed locally.
  • v0.1.1

    • Adds flag to print version of cli and nodemailer.
  • v0.1.0

    • Cleans up command line switches, and adds support for attachments.
  • v0.0.1

    • Initial Release.

The MIT License (MIT)

Copyright (c) 2014 Nathan Wittstock

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.