the file is entitled as frontend.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Mail</title>
</head>
<body>
<form method="post" action="backend.php">
<label>To</label>
<input type="email" name="reciever">
<br>
<label>Subject</label>
<input type="text" name="subject">
<br>
<label>Message</label>
<input type="text" name="message"/>
<br>
<input type="submit" value="Send Mail" name="sendMail" />
</form>
</body>
</html>
and this file is named as "backend.php"
<?php
$from = "waqas.sajid.ncm@gmail.com";
$email=$_POST['reciever'];
$subject=$_POST['subject'];
$messge=$_POST['message'];
ini_set("SMTP","aspmx.l.google.com");
mail($email, $subject, $messge, "From:".$from);
?>
but its not working...why? and XAMPP is being used.