<?php
@$to = "enquiries@australiansolarnetwork.com.au";
@$from = $_REQUEST["email"];
@$subject = "Contact Information From Australian Solar Networks";
@$Name = $_REQUEST["cname"];
@$email = $_REQUEST["email"];
@$Comments = $_REQUEST["yourmessage"];

$message="".
"<html>".
"<head>".
"<title>New Mail From Contact</title>".
"<style type=text/css>".
"<!--".
".text11{".
	"font-family: Verdana, Arial, Helvetica, sans-serif;".
	"font-size: 11px;".
	"font-weight: normal;".
	"color:#000000;".
	"line-height:13pt;".
	"}".
	
".headingjobs{".
	"font-family: Verdana, Arial, Helvetica, sans-serif;".
	"font-size: 13px;".
	"font-weight: normal;".
	"color:#FFFFFF;".
	"padding:-left:1px;".
	"line-height:12pt;".
	"}".
"-->".
"</style>".
"</head>".
"<body >".
"<table  width='500' border='1' align='center' cellpadding='2' cellspacing='2' class=text11  style='border-collapse:collapse'>".			
			"<tr>".
				"<td  ><b><u>Contact Information  Australian Solar Networks</u></b><BR> This form was submitted by <b> "	. $from . "</b> on ". 		date("l F jS, Y") ." at ". date("g:i A")."</td>".
				"</tr>".
				
"<tr><td><br>".
//------------------------------------- 
"<b>Name: </b> " . $Name .
"<hr noshde size=1 color=#CCCCCC><b>Email: </b><br>". @$email. 
"<hr noshde size=1 color=#CCCCCC><b>Comments : </b><br>". @$Comments;

//-----------------------------------------------------------
"</td></tr>" .
"</table>"; 

//echo $message;
//die();

@$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: ' . $_REQUEST["email"] .  "\r\n"; 
$headers .= 'Reply-To:' . $_REQUEST["email"] . "\r\n";
$headers .= 'X-Mailer: PHP/' . phpversion(); 
@mail($to, $subject,$message,$headers);	
?>

<script type="text/javascript">
window.location = "thanks.php";
</script> 
