Problem sending Email - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Problem sending Email (/showthread.php?tid=33825) |
Problem sending Email - El Forum - 09-09-2010 [eluser]Unknown[/eluser] Hello, Please i have issues sending email using CI. I keep getting this error A PHP Error was encountered Severity: Notice Message: fwrite() [function.fwrite]: send of 5 bytes failed with errno=32 Broken pipe Filename: libraries/Email.php Line Number: 1789 I really don't understand what the problem is, the site is uploaded to my domain and code looks this this. Code: function send_notification($address, $message, $subject) The smtp server for my domain works well. Please what could be wrong? Thanks Problem sending Email - El Forum - 09-05-2012 [eluser]rAponZel[/eluser] Hi, I am also getting that kind of error on my uploaded website. Can anyone explain why it occurs? Problem sending Email - El Forum - 09-05-2012 [eluser]Beginers[/eluser] trY THIS Code: $config = Array( Problem sending Email - El Forum - 09-05-2012 [eluser]Krystian[/eluser] you don`t need to change your script to google mail. add port to your config array - find out which one is open by your provider ( it can be 465, 587 ...) add also Code: $config['newline'] = "\r\n"; Problem sending Email - El Forum - 09-05-2012 [eluser]rAponZel[/eluser] Thank you Beginers for helping me up clearing my mind out of confuse. I finally understand why this error comes up. =========================================================================================== A PHP Error was encountered Severity: Notice Message: fwrite() [function.fwrite]: send of x bytes failed with errno=32 Broken pipe Filename: libraries/Email.php Line Number: xxxx =========================================================================================== It matters the kind of protocol were using specially on the hosting where our website was hosted. In my case I set the protocol to 'mail' and this is the only configuration I set up for my emailer. $config['protocol'] = 'mail'; |