1.0.10 • Published 5 years ago

markdown-mailer v1.0.10

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

markdown-mailer

npm

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 bashowdown 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

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago