群发邮件的perl脚本程序
#!/usr/bin/perl
#open M,'../olympic_note/mail_template';
open M,'tongzhi.txt';
@t = ;
close M;
open(LIST, 'liebiao.txt');
#open(LOG,'>>havesend.olympic.080731');
open(LOG,'>>sent.20100524.log');
while() {
s/[\r\n]//g;
# ($username,$email) = split(/\s+/);
$email = $_;
print LOG "$email\n";
# open(MAILER, "|/usr/sbin/sendmail -t -flubingcba\@51.net");
open(MAILER, "|/usr/sbin/sendmail -t -fAccountAdmin\@51.net");
print MAILER
页:
[1]