title: smtp configuration for php mail
body: <p>I am sending mails from my website by using php mail function. But now it is not working and I contacted our hosting team then they told me to use smtp as they did some changes in server. I don't know how to do it. Current code (with php mail function) is as follows, can anyone help me about the changes which I have to do with this.</p>
  
  <pre><code>&lt;?php
  $mail_To="someone@gmail.com";
  $headers = "";
  $headers .= "From: livetv@muscle-tube.com\n";
  $headers .= "Reply-To: livetv@muscle-tube.com\n";
  $headers .= "MIME-Version: 1.0\n";
  $headers .= "Content-type: text/html; charset=iso-8859-1\n";
  $headers .= "X-Mailer: php";
  $mail_Subject = " Live TV key";
  $mail_Body = "&lt;p&gt;Muscle-tube&lt;/p&gt;";
  mail($mail_To, $mail_Subject, $mail_Body,$headers);
  ?&gt;
  </code></pre>