I am trying to send e-mail to a group but not being able to send catch is my script is sending e-mail to individual id, but not group.
Googled it but not much helpful.
For sending to bulk users i don't want to use alias, some restrictions.
Please Advice
#!/usr/bin/perl
#!/usr/sbin/sendmail
$to = '[email protected],';
$from = '[email protected]';
$subject = 'Subject';
#$message = 'This is test mail';
open(MAIL, "|/usr/sbin/sendmail -t");
# Email Header
print MAIL "To: $to\n";
print MAIL "From: $from\n";
print MAIL "Subject: $subject\n\n";
# Email Body
print MAIL "print something";
close(MAIL);
#print "Email Sent Successfully\n
Pass list of recipients as sendmail command line arguments - AFAIR it should work on Linuxes for a few hundredth recipients.