title: sending a email confirmation mail using php
body: <p>I use the following script to send mail using PHP. Now my requirement is to send a confirmation email with a unique link to click. Which will verify the email id</p>
  
  <pre><code>    &lt;?php
  $to = "user@gmail.com";
  $subject = "Test mail";
  $message = "Hello! This is a simple email message.";
  $from = "fromuser@gmail.com";
  $headers = "From:" . $from;
  mail($to,$subject,$message,$headers);
  echo "Mail Sent.";
  ?&gt; 
  </code></pre>