Send multiple emails with bash

Bulk email sending with bash:

for email in mail1@example.com mail2@example.com mail3@example.com;
do echo -e 'Some text\nWith new lines' | mail -s "MySubject" $email;
done
Tagged , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *