<?php 

    $state='Demo';
    $city='Demo';
    
    $email="jaspinder32@gmail.com";
  
   $subject="Dealership application from Terra motors india";
   $body = "<html> <head> <style type='text/css'>

table {
width: 100%;
min-width:220px;
}
table {
    border: 1px solid #F00;
	}
tr td{
  border: 1px solid rgb(224, 5, 96);
    padding: 1px;;
    font-size: 1.2em;
    font-weight: 400;
    font-family: verdana;
    vertical-align: text-top;
    -webkit-font-smoothing: antialiased;
}

</style></head>
  <body> 
    <table>
      <tr><td>State</td><td>$state</td> </tr>
     <tr><td>City</td><td>$city</td> </tr>
   </table>
  </body> 
</html> "; 
   
echo $body;
exit;
   $header="From:<noreply@terramotors.in>\r\n";
   $headers.="MIME-Version: 1.0\r\n";
   $headers.="Content-type: text/html; charset=iso-8859-1\r\n";
   
   if(mail($email,$subject,$body,$headers)){
		
		echo "<script language='JavaScript'>alert('Thanks for your message, we will get back to you soon.');history.back()</script>";
   }else{echo 'failed';}

?>