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

mail-cli

v1.6.3

Published

A command-line interface (CLI) tool for managing email drafts, configuring SMTP settings, and sending emails.

Downloads

476

Readme

Mail CLI Tool

A command-line interface (CLI) tool for managing email drafts, configuring SMTP settings, and sending emails.

Table of Contents

Installation

To use this CLI tool, you must have Node.js installed. Clone the repository and install the dependencies.

npx mail-cli

For installation inside node_modules

npm i mail-cli

For cloneing and contribution

git clone https://github.com/your-repo/mail-cli-tool.git
cd mail-cli-tool
npm install

Usage

Run the CLI tool using the following command:

npx mail-cli <command> [options]

Setup Commands

Configure the tool with your email settings and editor preferences.

npx mail-cli --setup --smtp-host <host>
npx mail-cli --setup --smtp-port <port>
npx mail-cli --setup --auth-user <username>
npx mail-cli --setup --auth-pass <password>
npx mail-cli --setup --set-secure
npx mail-cli --setup --set-unsecure
npx mail-cli --setup --set-editor <editor>
npx mail-cli --setup --view-config
npx mail-cli --setup --edit-config

Draft Commands

Manage your email drafts with the following commands:

npx mail-cli --draft --new [--tag <tagname>]
npx mail-cli --draft --get-draft-list
npx mail-cli --draft --get-draft <draft_id or tag_name>
npx mail-cli --draft --edit-draft --subject <draft_id or tag_name> <new_subject>
npx mail-cli --draft --edit-draft --body <draft_id or tag_name> <new_body>
npx mail-cli --draft --send [<draft_id or tag_name>]

Configuration

The configuration is stored in a config.json file. You can set up the following properties:

  • smtp-host: SMTP server host.
  • smtp-port: SMTP server port.
  • set-secure: Boolean indicating if the connection should use SSL.
  • auth-user: SMTP username.
  • auth-pass: SMTP password.
  • editor-set: Default editor for editing drafts.

Draft

Drafts are stored in the VOLUMES/Drafts/ directory, and their metadata is maintained in the VOLUMES/drafts.json file. You can create, edit, and send drafts using the commands provided in the Draft Commands section.

App Password

Zoho

  • Use the following url in your browser

    https://accounts.zoho.in/home#profile/personal
  • Go to Account Section in top left corner, and go to Security and select Password

    Alt Account>Security>Password

  • Go to App Specific Password Section, and select "Generate New Password"

    Alt App_Specific_Password

  • Give a new App name, and select Generate to create a new Application

Alt App_Specific_Password

  • A new password will be generated for the user

Gmail

  • Open your Google Account : and go to search Bar.

    google search bar

  • Search for App Passwords.

    Search for App Passwords in search bar

  • create a new App Password

    create a new App Passwords by giving name to your app.

License

This project is licensed under the MIT License


### Notes:
- The structure of the `README.md` is designed to guide users through installing and using the CLI tool.
- The sections cover how to configure the SMTP settings, manage drafts, and access help within the tool.
- You should replace the placeholder repository URL in the installation instructions with the actual repository URL when deploying.