title: What will be the settings in php.ini for sending an email?
body: <p>It causes the following error related to a mail server or <code>php.ini</code> file.</p>
  <blockquote>
  <p>Warning: mail(): Failed to connect to mailserver at &quot;localhost&quot; port 25, verify your &quot;SMTP&quot; and &quot;smtp_port&quot; setting in php.ini or use ini_set() in E:\wamp\www\pr\mail.php on line 14</p>
  <p>Warning: mail(): Failed to connect to mailserver at &quot;localhost&quot; port 25, verify your &quot;SMTP&quot; and &quot;smtp_port&quot; setting in php.ini or use ini_set() in E:\wamp\www\pr\mail.php on line 15
  </p>
  </blockquote>