Welcome Guest, Not a member yet? Register   Sign In
CI Email library with Yandex Mail service
#1

Hi,
I can't get Email library work with Yandex email. I tried several configurations still same result.
Email configurations are: 
PHP Code:
$config = Array(
    
'protocol' => 'smtp',
    
'smtp_crypto' => 'ssl',
    
'smtp_host' => 'smtp.yandex.com',
    
'smtp_port' => 465//tried 25 Port also
    
'smtp_user' => '[email protected]',
    
'smtp_pass' => 'mypassword',
    
'mailtype' => 'html',
    
'charset' => 'utf-8'
    
); 
This is the error I get:
Severity: Warning
Message: fsockopen(): unable to connect to smtp.yandex.com:25 (Connection timed out)
Filename: libraries/Email.php
Line Number: 2069

I tried to test with PHPMailer library, PHPMailer is working good, here is PHPMailer library configs:

PHP Code:
        $this->mailer = new PHPMailer(true); 

        
$this->mailer->Host 'smtp.yandex.com';
        
$this->mailer->Port 465;
        
$this->mailer->SMTPAuth true;
        
$this->mailer->SMTPSecure 'ssl';
        
$this->mailer->SMTPOptions = array (
            
'ssl' => array(
                
'verify_peer' => false,
                
'verify_peer_name' => false,
                
'allow_self_signed' => true)
        );
        
$this->mailer->Username '[email protected]';
        
$this->mailer->Password 'mypassword';
        
$this->mailer->isHTML true
Reply


Messages In This Thread
CI Email library with Yandex Mail service - by neuron - 11-12-2018, 01:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB