1.0.8 • Published 8 years ago

cma v1.0.8

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

CMA

Name

cma -- send a mail

Install

npm install -g cma

Synopsis

cma [-MHIRFma] [-s subject] [-c cc-addr] [-b bcc-addr] to-addr ... [file]
cma config -- interactive configuration helper
cma check -- verify configuration

Examples

cma -I
cma -Ms Hello to@example.org < message.md
cma me@example.org you@example.org message.html
cma -s "hello" -m "world" me@example.org
cma -Ha filename.jpg
cma -H -a cover.pdf -a photos.zip someone@example.org < holidays.html
keybase pgp encrypt -s -m 'Hello crypted world!' someone | cma someone@example.org

Options

--subject -s
--cc -c 
--bcc -b
--attachment -a 
--message -m 
--markdown --md -M
--html -H
--interactive -I
--config filepath
--reply-to -R
--from -F -- defaults to user
--verbose -v
--help -h
--version 

Advanced configuration

Check out ~/.config/cma/nodemailer.js, it's a javascript function that exports a nodemailer transport:

'use strict'
const smtpConfig = '';

module.exports = function(nodemailer) {
  return nodemailer.createTransport(smtpConfig)
}

Lot of options are available to configure SMTP, best is to checkout the nodemailer docs!

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago