File: /home/imensosw/www/imenso.co/dev/html-test/sendmail.php
<?php
// Define some constants
ini_set( 'display_errors', 1 );
error_reporting( E_ALL );
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Create email headers
$headers .= 'From: Rahul "<rahuljoshi.gogu@gmail.com>\r\n"'.
'Reply-To: rahuljoshi.gogu@gmail.com'."\r\n" .
'X-Mailer: PHP/' . phpversion();
//Load Mail Template
echo $mail_sent = mail('rahuljoshi.webdev@gmail.com', 'Contact', "<h2>Message</h2>", $headers);
die;