An open API service indexing awesome lists of open source software.

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

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