Help for this page
print MAIL "encode_base64( read_file($attachment) )"; open(FILE, '<', $attachment) or die "Cannot open $attachment: $!"; print MAIL <FILE>;
open(FILE, '<', $attachment) or die "Cannot open $attachment: $!"; binmode FILE; while (read(FILE, my $buf, 60*57)) { print MAIL encode_base64($buf); }