title: fsockopen() unable to connect to localhost : 25
body: <p>I have one project developed using codeigniter framework.In that I need to send mail to the user but I'm getting the error while sending mail</p>
  
  <pre><code>    &lt;h4&gt;A PHP Error was encountered&lt;/h4&gt;
  
      &lt;p&gt;Severity: Warning&lt;/p&gt;
      &lt;p&gt;Message:  fsockopen(): unable to connect to localhost:25 (Connection refused)&lt;/p&gt;
      &lt;p&gt;Filename: libraries/Email.php&lt;/p&gt;
      &lt;p&gt;Line Number: 1689&lt;/p&gt;
  </code></pre>
  
  <p>why I'm getting this?</p>