CodeIgniter Forums
Send email with large attachment - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forum-6.html)
+--- Forum: Issues (https://forum.codeigniter.com/forum-19.html)
+--- Thread: Send email with large attachment (/thread-69870.html)



Send email with large attachment - Amrutha - 01-25-2018

Hi 
I get the following error when sending email with attachments of big size.
We are using codeigniter 3.1.0

A PHP Error was encountered


Severity: Notice

Message: fwrite(): send of 8192 bytes failed with errno=11 Resource temporarily unavailable

Filename: libraries/Email.php

Line Number: 2207



RE: Send email with large attachment - pbarney - 01-25-2018

Unfortunately, there can be a lot of reasons for a failing socket write. Reducing the number of bytes per fwrite could fix the problem, but I don't see a way to do that with CI, but I could be wrong.