title: Codeigniter not connecting to my SMTP server
body: <p>For some reason CodeIgniter is not connecting to my SMTP server, anyone have any problems surrounding this?</p>
  
  <pre><code>$config['protocol'] = 'smtp';
  $config['smtp_host'] = 'smtp.netregistry.com.au';
  $config['smtp_port'] = '465';
  </code></pre>
  
  <blockquote>
    <p>A PHP Error was encountered</p>
    
    <p>Severity: Warning</p>
    
    <p>Message: fsockopen(): unable to connect to smtp.netregistry.com.au:465 (php_network_getaddresses: getaddrinfo failed: Name or service not known)</p>
    
    <p>Filename: libraries/Email.php</p>
    
    <p>Line Number: 1689</p>
  </blockquote>
  
  <p>Should I be using the SSL or non-SSL port? (I've tried both; no dice)</p>
  
  <p>Is there a way of explicitly telling CI to use SSL or not?</p>
  
  <p>Am I doing anything blaringly wrong here?</p>
  
  <p>Thanks</p>