https://github.com/soontao/send-mail
The easiest way send email from cli
https://github.com/soontao/send-mail
cli mail tool
Last synced: over 1 year ago
JSON representation
The easiest way send email from cli
- Host: GitHub
- URL: https://github.com/soontao/send-mail
- Owner: Soontao
- License: mit
- Created: 2017-06-28T03:06:05.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T02:22:34.000Z (over 2 years ago)
- Last Synced: 2025-01-23T12:24:31.802Z (over 1 year ago)
- Topics: cli, mail, tool
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# send-mail
simple tool to help send mail from cli
## install
```bash
npm i -g https://github.com/Soontao/send-mail
```
## usage
help from cli
```bash
$ send-mail --help
simple tool to help send mail from cli
Options:
-s, --service service name, for example, QQ
-u, --user auth user
-p, --pass auth user password, or toekn
-t, --target target email address
-h, --header email title
-c, --content email content
--save save current config to user main directory
--clean clean config
```
cli command template
```bash
send-mail -s -u -p -t -h -c
```
live sample
```bash
send-mail -s QQ -u no.such.mail.box@qq.com -p nosuchmailpass -t theo.sun@outlook.com -h 'HI Theo' -c 'this is content, nice to see you theo'
```
## Adavance
With config
```bash
send-mail --save -s QQ -u no.such.mail.box@qq.com -p nosuchmailpass
```
And you could use the saved config later
```bash
send-mail -t 'theo.sun@qq.com' -h 'Hi theo' -c 'nice to see you here'
# same as send-mail -s QQ -u no.such.mail.box@qq.com -p nosuchmailpass -t 'theo.sun@qq.com' -h 'Hi theo' -c 'nice to see you here'
```
Delete config
```bash
send-mail --clean
```