Skip to content

Instantly share code, notes, and snippets.

@fbouynot
Created May 12, 2021 15:33
Show Gist options
  • Save fbouynot/bcf1a21258ee0e8aff688e4fb8fe4c5b to your computer and use it in GitHub Desktop.
Save fbouynot/bcf1a21258ee0e8aff688e4fb8fe4c5b to your computer and use it in GitHub Desktop.
#!/bin/bash
for i in `cat emails.txt`
do
echo "Bla,
Blabla
Bla." | mail -s "Object lalala" -r "[email protected]" -S smtp=smtp.example.com ${i}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment