$to = $user_email;
$subject=’Application Form ‘;
$message=’testing’;
$headers = «From: My site<noreply@example.com>\r\n»;
$headers .= «Reply-To: info@example.com\r\n»;
$headers .= «Return-Path: info@example.com\r\n»;
$headers .= «X-Mailer: Drupal\n»;
$headers .= ‘MIME-Version: 1.0’ . «\n»;
$headers .= ‘Content-type: text/html; charset=iso-8859-1’ . «\r\n»;
if(mail($to,$subject,$message,$headers))
{
echo «Mail Successfully Sent..»;
exit;
}