#!/usr/bin/perl #--------------------------------------------------------------------- # faxer.pl # # Send file to . Note that the recipient field is # a specially formatted field that contains recipient name, fax, # and email address of the fax server, like so: # # "/name=Lonnie/fax=2136998/" # # 20050111 MCMason - Created from script LPhillips gave me #--------------------------------------------------------------------- use MIME::Lite; $fax_dest = @ARGV[0]; $fax_file = @ARGV[1]; $msg = MIME::Lite->new( From => 'Roboticus ', To => "$fax_dest", Subject => 'Aging Report', Type => 'TEXT', Data => '' .'' ) or die "Error creating MIME body: $!\n"; $msg->attach( Type => 'text/plain', Path => $fax_file, Filename => 'Aging Report' ) or die "Error attaching file: $!\n"; $msg->send;