CodeIgniter Forums
smtp send errno=32 Broken pipe - 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: smtp send errno=32 Broken pipe (/showthread.php?tid=64863)



smtp send errno=32 Broken pipe - eltoto79 - 04-04-2016

Hello everyone,
I want to use the SMTP server of my provider ( too many problems with mine) , so I picked up the documentation and makes the setting. But....
I try to send via OVH .
PHP Code:
$config['protocol'] = 'smtp';
$config['smtp_host'] = 'ssl0.ovh.net';
$config['smtp_user'] = '[email protected]';
$config['smtp_pass'] = 'MonMDP';
$config['smtp_port']='465';
$config['smtp_timeout']='30';
$config['smtp_crypto']='ssl';
        
$this->email->initialize($config);         
        
$this->email->from(ADDRESS_MAIL_PDC_NOREPLYPDC_NOM);
        
$this->email->to($email);
        
$this->email->subject($this->lang->line('SujetReinit'));
        
$this->email->message($this->load->view('utilisateur/mailReinit',$data,true));
$this->email->send(); 

It returns
Code:
<p>Severity: Notice</p>
<p>Message:  fwrite(): send of 5 bytes failed with errno=32 Broken pipe</p>
<p>Filename: libraries/Email.php</p>
<p>Line Number: 2144</p>

What's wrong ? it's been almost 2 hours I'm looking for but I do not understand. I have not found in the forum so if it is already treated thank you to send me the link


RE: smtp send errno=32 Broken pipe - josepostiga - 04-05-2016

First of all, I hope those are not your real access information... If so, change them and hide them from your message!

Now, for your problem, check if this answer helps you: http://stackoverflow.com/questions/13694351/error-while-sending-an-email-with-codeigniter


RE: smtp send errno=32 Broken pipe - eltoto79 - 04-05-2016

(04-05-2016, 03:04 AM)josepostiga Wrote: First of all, I hope those are not your real access information... If so, change them and hide them from your message!

Now, for your problem, check if this answer helps you: http://stackoverflow.com/questions/13694351/error-while-sending-an-email-with-codeigniter

Thank you josepostiga for your answer
"The default new line character is \ n, whereas the SMTP server is expecting \ r \ n. It never finds Thinks That So That It never atteint the end, Ultimately Causing a timeout."
It work now !!!
And No, it is not the real access information.