Welcome Guest, Not a member yet? Register   Sign In
Error when sending email in codeigniter
#1

[eluser]FlyingCat[/eluser]
I am trying to send an email from codeigniter and have spent lots time on this. I have the following settings.

Code:
$config['protocol'] ='smtp';
    $config['wordwrap'] = TRUE;
    $config['smtp_port']=587;
    $config['smtp_host']='ssl://smtp.live.com';
    $config['smtp_user']='myemail';
    $config['smtp_pass']='mypw';
    
    
    $this->email->initialize($config);
    
    $this->email->from('',$employee);
    $this->email->to($email);
    $this->email->subject('Email');
    $this->email->message($message);
    
    $this->email->send();
    
    echo $this->email->print_debugger()
;

-----------------------------------------------------------------------
It gives the following error message when I send.

Code:
Message: fsockopen(): SSL operation failed with code 1.
    OpenSSL Error messages: error:140770FC:SSL routines:func(119):reason(252)
    Filename: libraries/Email.php
    Line Number: 1673
    
    Message: fsockopen(): Failed to enable crypto
    Filename: libraries/Email.php
    Line Number: 1673
    
    Message: fsockopen(): unable to connect to ssl://smtp.live.com:587 (Unknown error)
    Filename: libraries/Email.php
    Line Number: 1673
    
    Message: fwrite() expects parameter 1 to be resource, boolean given
    Filename: libraries/Email.php
    Line Number: 1816
Anyone could help me about this? Thanks a million.

#2

[eluser]FlyingCat[/eluser]
I got this now. Please skin this post.
#3

[eluser]summanerd[/eluser]
Hey could you share your answer? thanks!




Theme © iAndrew 2016 - Forum software by © MyBB