title: How to send mail through localhost?
body: <pre><code>&lt;?php
  $to = "rajesh.bakade65@gmail.com";
  $subject = "HTML email";
  $message = "
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;HTML email&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;p&gt;This email contains HTML Tags!&lt;/p&gt;
  &lt;table&gt;
  &lt;tr&gt;
  &lt;th&gt;Firstname&lt;/th&gt;
  &lt;th&gt;Lastname&lt;/th&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td&gt;John&lt;/td&gt;
  &lt;td&gt;Doe&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  ";
  // Always set content-type when sending HTML email
  $headers = "MIME-Version: 1.0" . "\r\n";
  $headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
  // More headers
  $headers .= 'From: &lt;rajesh.bakade@chpl.tv&gt;' . "\r\n";
  //$headers .= 'Cc: myboss@example.com' . "\r\n";
  mail($to,$subject,$message,$headers);
  ?&gt;
  </code></pre>
  
  <p>and my php.ini file is</p>
  
  <pre><code>[mail function]
  ; For Win32 only.
  ; http://php.net/smtp
  SMTP = smtp.gmail.com
  ; http://php.net/smtp-port
  smtp_port = 25
  
  ; For Win32 only.
  ; http://php.net/sendmail-from
  ;sendmail_from = postmaster@localhost
  </code></pre>
  
  <p>plz suggest any solution so that i will be able to send  mail from localhost</p>
  
  <p>Thanks</p>