CodeIgniter Forums
Empty PDF files in emails after update to 3.1.0 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: Issues (https://forum.codeigniter.com/forumdisplay.php?fid=19)
+--- Thread: Empty PDF files in emails after update to 3.1.0 (/showthread.php?tid=66315)



Empty PDF files in emails after update to 3.1.0 - aimpark - 10-07-2016

Hi everyone

After I have updated CodeIgniter from 3.0.6 to 3.1.0, because of the RSET and timeout fixes of the SMTP connections and suddenly have another problem at hand. When I attach a PDF file to an email. It arrives empty. Well, more precisely it arrives "size unknown" and I can't open it.

I use FPDF to create the PDF. But it works in 3.0.6, so I assume it has something to do with the inline attachment fix.

Does anyone have an idea?

All help is much appreciated.

Al


RE: Empty PDF files in emails after update to 3.1.0 - ebizo - 10-21-2016

I recommend you use the library Swiftmailer.
It is easy to integrate with CI.


RE: Empty PDF files in emails after update to 3.1.0 - klikklak - 10-22-2016

See fix on develop branch:
https://github.com/bcit-ci/CodeIgniter/commit/9b0f5fa0339eb1f74ff06e769d71e5911ba2be06

and use email library from this branch.

Cheers
Roger


RE: Empty PDF files in emails after update to 3.1.0 - zknight - 10-26-2016

CI3.1.1 is released, just upgrade to that and it'll solve your issue.