• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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' => 'username@yandex.com',
    
'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 'username@yandex.com';
        
$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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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