https://github.com/stevekm/mutt-py
A Python wrapper script for emailing with mutt
https://github.com/stevekm/mutt-py
attachment email mutt python python-wrapper-script
Last synced: 7 months ago
JSON representation
A Python wrapper script for emailing with mutt
- Host: GitHub
- URL: https://github.com/stevekm/mutt-py
- Owner: stevekm
- Created: 2017-04-15T22:21:27.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-12-31T10:50:15.000Z (about 8 years ago)
- Last Synced: 2025-04-05T21:24:56.238Z (10 months ago)
- Topics: attachment, email, mutt, python, python-wrapper-script
- Language: Python
- Size: 6.84 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mutt-py
A Python wrapper script for emailing with the `mutt` [program](http://www.mutt.org/).
This script will let you easily send a message from your remote server with multiple files attached, avoiding the need to download files to your local machine in order to email them.
# Usage
The only required flag is `-r` to specify a list of email recipients. Other flags can be provided, to fill in the subject line, body message, and reply-to address. Any extra positional arguments are treated as files to be attached.
```bash
$ ./mutt.py -s "Merry Christmas!" -r "mom@internets.com, dad@internets.com" -rt "steve@internets.com" -m "Merry Christmas, Mom and Dad! Love, Steve" christmas_card.txt presents.txt
```
Output:
```
Email command is:
export EMAIL="steve@internets.com"
mutt -s "Merry Christmas" -a "christmas_card.txt" -a "presents.txt" -- "mom@internets.com, dad@internets.com" < "$message_file" <