Skip to content

Instantly share code, notes, and snippets.

@rmoehn
Created February 25, 2014 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmoehn/9213000 to your computer and use it in GitHub Desktop.
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
#!/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