cma
v1.0.8
Published
Cli mail
Downloads
15
Readme
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 [email protected] < message.md
cma [email protected] [email protected] message.html
cma -s "hello" -m "world" [email protected]
cma -Ha filename.jpg
cma -H -a cover.pdf -a photos.zip [email protected] < holidays.html
keybase pgp encrypt -s -m 'Hello crypted world!' someone | cma [email protected]
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!