use MIME::Lite; use Net::SMTP; my$from_address='seven.zhang@uniforce.net'; my$to_address='pilot3@spam-dev-1.hk.uniforce.net'; my$mail_host='nxserver.sh.uniforce.net'; my$subject='subject: 5i envelope sender rewrite test'; open(A,"a5i.txt")ordie"cannot open a5i.txt$!\n"; $file=<A>."\n"; foreach(1..100){ $msg= MIME::Lite->new ( From =>$from_address, To =>$to_address, Subject =>$subject, Type =>'multipart/mixed' )ordie"Error creating multipart container: $!\n"; $msg->attach ( Type =>'PLAIN/TEXT', Data =>$file, )ordie"Error adding the text message part: $!\n";