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
<?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.";
?>