in reply to Re^3: Trouble emailing zip file
in thread Trouble emailing zip file
Why the second print statement ?
print MAIL "encode_base64( read_file($attachment) )"; open(FILE, '<', $attachment) or die "Cannot open $attachment: $!"; print MAIL <FILE>;
Try replacing those 3 lines with
pojopen(FILE, '<', $attachment) or die "Cannot open $attachment: $!"; binmode FILE; while (read(FILE, my $buf, 60*57)) { print MAIL encode_base64($buf); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Trouble emailing zip file
by TonyNY (Beadle) on Jul 05, 2018 at 21:34 UTC | |
by poj (Abbot) on Jul 06, 2018 at 10:38 UTC |