CodeIgniter Forums
smtp Broken pipe issue with email.php - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: smtp Broken pipe issue with email.php (/showthread.php?tid=74363)



smtp Broken pipe issue with email.php - bomakalu - 09-16-2019

Hi there I am complete newbie here and desperately need some advice.

We have a crm and its stopped sending out emails from a cron job.

Error below: 

ERROR - 2019-09-16 00:00:10 --> Severity: Notice  --> fwrite() [<a href='function.fwrite'>function.fwrite</a>]: send of 3505 bytes failed with errno=32 Broken pipe /home/crmvoxsi/public_html/system/libraries/Email.php 1846


basically its not piping correctly.

here is line 1846: in BOLD BELOW

/**
* Send SMTP data
*
* @access protected
* @return bool
*/
protected function _send_data($data)
{
if ( ! fwrite($this->_smtp_connect, $data . $this->newline))
{
$this->_set_error_message('lang:email_smtp_data_failure', $data);
return FALSE;
}
else
{
return TRUE;
}
}


If you can advise i would be really grateful as its a big issue for us

thanks in advance.

Bo


RE: smtp Broken pipe issue with email.php - InsiteFX - 09-16-2019

Maybe this will help

Pipe Broken


RE: smtp Broken pipe issue with email.php - bomakalu - 09-16-2019

(09-16-2019, 08:25 AM)InsiteFX Wrote: Maybe this will help

Pipe Broken

hi there thanks for this. Smile
We increased timeout to 30 from 5 and we still get this error.
If you have any insights I would really appreciate it.
Thanks for the time  Smile


RE: smtp Broken pipe issue with email.php - jreklund - 09-17-2019

Have you changed encoding on the site to utf-8 or added unicode characters to your newsletter?


RE: smtp Broken pipe issue with email.php - bomakalu - 11-10-2019

Hi there we have made no changes to the utf-8 or added any unicode characters
Any ideas would be very helpful.
thanks