<?php
		$mail_to=$mail;
		$headers = "MIME-Version: 1.0\n"; 							
		$headers .= "Content-Type: text/html; charset=iso-8859-1";
		$headers .= "Content-Transfer-Encoding: 8bit\n"; 
		$headers .="From: ".$fromemailid;		 				
		
		$subject="Your account information held  ";
		$message="Dear ".$username;
		$message .="<br>Your login details are:<br><br>
		Login Email:". $username."<br>
		Password: ".$paswd ."<br><br>
		Thank you.<br><br>";		
		mail($mail_to,$subject,$message,$headers);

?>