# markdown-mailer

> A markdown mailer

Latest version **1.0.10** (published 2019-08-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install markdown-mailer
pnpm add markdown-mailer
yarn add markdown-mailer
bun add markdown-mailer
```

Provides the command `mm`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.10 |
| Published | 2019-08-19 |
| First published | 2019-08-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 54.6 KB |
| Known vulnerabilities | 0 (+25 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | xueminghao |
| Maintainers | xueminghao |
| Keywords | markdown, mailer, mail |

## Links

- npm: https://www.npmjs.com/package/markdown-mailer
- Repository: https://github.com/xueminghao/mm
- Homepage: https://github.com/xueminghao/mm#readme
- Issues: https://github.com/xueminghao/mm/issues
- npm.io page: https://npm.io/package/markdown-mailer

## Dependencies (6)

- [chalk](https://npm.io/package/chalk.md) ^2.4.2
- [shelljs](https://npm.io/package/shelljs.md) ^0.8.3
- [inquirer](https://npm.io/package/inquirer.md) ^6.5.0
- [showdown](https://npm.io/package/showdown.md) ^1.9.0
- [commander](https://npm.io/package/commander.md) ^2.20.0
- [nodemailer](https://npm.io/package/nodemailer.md) ^6.3.0

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.0.10 (latest) — 2019-08-19
- 1.0.9 — 2019-08-19
- 1.0.8 — 2019-08-05
- 1.0.7 — 2019-08-05
- 1.0.6 — 2019-08-05
- 1.0.5 — 2019-08-05
- 1.0.4 — 2019-08-05
- 1.0.3 — 2019-08-05
- 1.0.2 — 2019-08-04
- 1.0.1 — 2019-08-04

## README

# markdown-mailer

![npm](https://img.shields.io/npm/v/markdown-mailer)

Markdown-mailer is a cli tool written in Javascript to send your mail written in markdown. It's based on some popular JS packages such as ```showdown``` and ```nodemailer```. After you finished the config process, you can send your markdown just with a simple ``` mm send <markdown-path>``` command.

# Installation

## npm
```
npm install -g markdown-mailer
```

## yarn
```
yarn global add markdown-mailer
```

# Usage

## config
Before you can use markdown-mailer to send email, you must set up it with some basic information such as which smtp service you want to use, the from and to address, etc. Run ```mm config -h``` to see the full options you can use with markdown-mailer as follows:

```
Usage: config [options]

Config mm

Options:
  -l, --list                 list the current configuration
  -s, --service <service>    config the SMTP service you will use to send your email
  -f, --from <from>          config the from address
  -t, --to <to...>           config the to addresses, multi addresses should be seperated by commas
  -b, --subject <subject>    config the subject
  -p, --password <password>  config password. Note it is the app specific password not the account password. For example if you are using gmail service, you can check this link for help: https://support.google.com/accounts/answer/185833?hl=en
  -h, --help                 output usage information
```

Use ```mm init``` to initialize the configuration, or use ```mm config``` to update it.

## send

Use ``` mm send <markdown-path>``` to send the specified markdown mail.

## help

Use ``` mm -h``` to see more detailed information
# Samples

Given the following markdown file:
```
# 项目
* 背景：****
* 项目成员：****
* 计划（一期）

    * 文本
* 本周工作
    
    1. 任务1

            yarn global add markdown-mailer
    1. 文本 ```代码``` 
    1. 列表
        
        * 文本
        * 文本

# 日常

1. 文本
2. 文本


# 下周计划

1. 文本
1. 文本
```

then run:
```
mm send test.md
```

you will receive the following like mail:
![mac-mail](res/mac-mail.png)

---
_Source: https://npm.io/package/markdown-mailer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
