use strict; use warnings; use Mail::Sendmail; my $from = '"Company Surveys" '; my $subject = 'Your Survey'; open LIST, "; my %mails = ( From => "$from", Subject => "$subject", Message => join "", @message, ); while () { sendmail('To' => $_, %mails) or warn $Mail::Sendmail::error; print "Message has been sent to $_"; }; close LIST; close MESSAGE; print "All e-mails sent successfully.\n\n"; #### Dear Potential Customer, blah blah From time to time, we would like to send you more surveys and our newsletter. We respect your privacy, therefore, if you wish to unsubscribe from our list, please reply, changing the Subject Line to: unsubscribe #### ghenry@me.com ghenry@me.org gavin.henry@me.com ghenry@me.co.uk ghenry@me.uk