You are not logged in.
Pages: 1
I've grown very attached to Mutt as an email client. The only problem was that there was no "mailing list" capability in Mutt - that is, I couldn't save a list of email addresses and just have Mutt automatically email all of them with my message and subject. Therefore, I decided to come up with a script. I feel like this works very well and is quite simple.
1) Open up your favorite text editor
2) Copy the following text into the empty text document:
#!/bin/bash
if [ $# -eq 3 ]
then
echo "Sending emails"
cat "$1" | while read line; do
echo "Sending email to $line"
mutt -F ~/.muttrc.home -s "`cat $2`" $line < "$3"
done
fi
if [ $# -eq 4 ]
then
echo "Sending emails"
cat "$1" | while read line; do
echo "Sending email to $line"
mutt -F ~/.muttrc.home -s "`cat $2`" -a "$4" -- $line < "$3"
done
fi3) Save this script as febootimail wherever you so choose.
4) Make the script executable
That's it!
------------------------------
How to use this script:
The format of the arguments to this script is as follows:
febootimail addresses subject body (attachment)Unfortunately, the script only supports one attachment at this time.
The addresses file
The addresses file is a plain text file which should be set up with one email address per line.
The subject and body files
These files are just plain text files.
That's it! If you have any questions, comments, or suggestions, feel free to post!
- Chaanakya
Check out Musik - an easy-to-use text-to-music converter!
Join SpiderOak using this link and get an extra 1 GB free: https://spideroak.com/download/referral … 660e787ff1
Offline
Pages: 1
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.