Quick And Dirty Mass Emailer Using Swaks
Tested on Fedora 39
- Install swaks
sudo dnf -y install swaks
- Create a text file with the email address of every recipient – one email address per line. Name the file list.txt
- Create a html file that is your email. Name the file message.html. Put all images on a publicly accessible web server
- Create the following bash script – name it sendmail.sh
#!/bin/bash for fn in `cat list.txt` ; do swaks --to $fn --from partyanimal@mydomain.net --header "Subject: Wild Party Tonight" --attach-type text/html --attach-body @message.html --server mailserver.mydomain.net done
- execute
chmod 755 sendmail.sh
- execute
./sendmail.sh
- Have fun at the party!!!