http://qs321.pair.com?node_id=1211145


in reply to Re^8: Using Net::SMTP to send pdf attachment
in thread Using Net::SMTP to send pdf attachment

The max encoded line length is 76. 3 bytes = 4 chars so 57 bytes = one full line. Any multiple of 3 avoids adding filler characters '=' to make up the encoded 4 characters and multiples of 57 give minimal line endings. 4095 also worked but 4104 is just the nearest multiple of 57 to 4096. See EXAMPLES in MIME::Base64

poj