title: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known
body: <p>I am failing to send form contents to email. I am getting the following error:</p>
  
  <pre><code>: Warning
  Message: fsockopen(): php_network_getaddresses: getaddrinfo failed:Name or service not known
  
  Filename: libraries/Email.php
  
  Line Number: 1986
  
  Severity: Warning
  
  Message: fsockopen(): unable to connect to ssl://smtp.123mailsetup.com:25   (php_network_getaddresses: getaddrinfo failed: Name or service not known)
  
  Filename: libraries/Email.php
  
     Line Number: 1986
  </code></pre>
  
  <p>My line 1986 is</p>
  
  <pre><code>$this-&gt;smtp_timeout);
  </code></pre>
  
  <p><strong>Part of the code in my controller</strong></p>
  
  <pre><code>$config = Array(
  'protocol' =&gt; 'smtp',
  'smtp_host' =&gt; 'smtp.xxxx.com',
  'smtp_port' =&gt; 465,
  'smtp_user' =&gt; 'xxxxx@xxx.com',
  'smtp_pass' =&gt; 'xxxxxxxx',
  'mailtype'  =&gt; 'html', 
  'charset'   =&gt; 'iso-8859-1'
  );
                  $this-&gt;load-&gt;library('email', $config);
                  $this-&gt;email-&gt;from('xxxxx@xxx.com', 'Mailsetup');
                  $this-&gt;email-&gt;to($email); 
  
                  $this-&gt;email-&gt;subject('Domain transfer');
                  $this-&gt;email-&gt;message( '&lt;html&gt;&lt;body&gt;Domain to be transfered        '.$domain.' &lt;br&gt; Domain owner '.$name.' , &lt;br&gt; email '.$email.'
  
                  &lt;/body&gt;&lt;/html&gt;' );   
  
                  $this-&gt;email-&gt;send();
  </code></pre>