Welcome Guest, Not a member yet? Register   Sign In
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'] = "[email protected]";
        $config['smtp_pass'] = "password";
        $config['wordwrap'] = "True";
        
        $CI->email->initialize($config);
        
        $CI->email->from('[email protected]', '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



Theme © iAndrew 2016 - Forum software by © MyBB