Created
February 25, 2014 16:57
-
-
Save rmoehn/9213000 to your computer and use it in GitHub Desktop.
Send emails to multiple people without them seeing the others' addresses and without using Bcc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use 5.18.0; | |
use warnings; | |
use strict; | |
use autodie qw(:all); | |
use Perl6::Slurp; | |
my $bodyfile = shift @ARGV; | |
my $subject = shift @ARGV; | |
while (<>) { | |
chomp; | |
system qq(mutt -s "$subject" $_ < $bodyfile); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment