 <?php
	 $to = $_POST['to'];
	 $fromwho = $_POST['from'];
	 $subject =  $_POST['subject'];
	 
	 $message =  '<html><body><table align="center" width="600px" cellpadding="0" cellspacing="0"><tr><td colspan="2"><img src="https://numerology-services.worldnumerology.com/email_header.jpg"/></td></tr><tr><td colspan="2"><hr/></td></tr><tr><td colspan="2"><br/>'.$_POST['message'].'<br/><br/>Mobile versions will be available soon through iTunes and Google Play</td></tr><tr><td colspan="2"><br/><br/><i>The World Numerology Collection delivers Hans\' latest work, adding new reports, innovative algorithms, and expanded chapters to his earlier work. His Next Generation profiles include the way each core number complements and affects the others, plus number combinations and insight unique to Decoz readings.</i></td></tr><tr><td width="400px"></td><td><img src="https://numerology-services.worldnumerology.com/email_hans.jpg"/></td></tr><tr bgcolor="#000000"><td bgcolor="#000000" colspan="2" height="40px"></td> </tr></table></body></html>';
	 
	// $header = "From: " . $fromwho . " \r\n";
	 $header .= "Reply-To: World Numerology <noreply@numerology-services.worldnumerology.com>\r\n"; 
	$header .= "From: World Numerology <noreply@numerology-services.worldnumerology.com>\r\n"; 
	 $header .= "Organization: World Numerology\r\n";
	 $header .= "MIME-Version: 1.0\r\n";
	 $header .= "Content-Type: text/html; charset=UTF-8\r\n";
	 
	 $retval = mail ($to,$subject,$message,$header);
	 
	 if( $retval == true ) {
		echo "success";
	 }else {
		echo "failure";
	 }
?>