• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem sending Email

#1
[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)
    {    $CI =& get_instance();
        $CI->load->library('email');
        //ini_set('SMTP', 'smtp.domainname.com');
    
        $config['protocol'] = 'smtp';
        $config['smtp_host'] = "smtp.domainname.com";
        $config['smtp_user'] = "do_not_reply@domainname.com";
        $config['smtp_pass'] = "password";
        $config['wordwrap'] = "True";
        
        $CI->email->initialize($config);
        
        $CI->email->from('do_not_reply@domainname.com', 'domainname');
        $CI->email->to($address);
            
        $CI->email->subject($subject);
        
        $CI->email->message($message);

        $CI->email->send();
        
        //echo $CI->email->print_debugger();
    }

The smtp server for my domain works well. Please what could be wrong?

Thanks


Messages In This Thread
Problem sending Email - by El Forum - 09-09-2010, 10:22 AM
Problem sending Email - by El Forum - 09-05-2012, 01:52 AM
Problem sending Email - by El Forum - 09-05-2012, 02:05 AM
Problem sending Email - by El Forum - 09-05-2012, 02:30 AM
Problem sending Email - by El Forum - 09-05-2012, 02:46 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.