gryphonshafer / Email-Mailer

Multi-purpose emailer for HTML, auto-text, attachments, and templates
1 stars 1 forks source link

PDF attachment not working #3

Closed Joesmi closed 6 years ago

Joesmi commented 6 years ago

Email::Mailer::send() uses quoted-printable encoding for attachments. This doesn't work for a PDF as per my tests, it becomes corrupted/unreadable. With base64 encoding the PDF gets delivered intact. Also base64 it seems to be the recommended encoding for binary files. Please would you mind changing quoted-printable to base64 or add encoding as a parameter in the attachment hash - besides ctype, content, name. Thanks!

gryphonshafer commented 6 years ago

This is fixed in 5a26484, which is released as v1.08 to CPAN. (It'll take a couple hours or so for CPAN to process it and make it available to the universe.)