$to = $regemail;
$subject = "Welcome to Deaglegame!";
$message = '<div style="width:700px; background-color: #f8f8f8; padding:10px; font-family: Arial, Helvetica, sans-serif; font-size:11px;">';
$message .= '<div><img src="http://deaglegame.net/images/logo.png" alt="Deaglegame" /></div>';
$message .= '<div style="margin-top: 10px;"><b>Thank you for registering '.$reguser.'!</b>';
$message .= '<p style="margin: 5px;">You are now registered with us, you can login at any moment on the website using the login box situated at the top right of any page!</p>';
$message .= '<p style="margin: 10px 0 5px 0;">Sincerly,</p>';
$message .= '<p style="margin: 5px 0 5px 0;">The Deaglegame.net Team</p>';
$message .= '<p style="margin: 5px 0 5px 0;"><a href="http://deaglegame.net">http://deaglegame.net</a></p>';
$message .= '</div>';
$message .= '</div>';
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
mail ($to, $subject, $message, $headers);
echo '<div style="-moz-border-radius:5px;-webkit-border-radius:5px;border:1px solid #7ccf29;background:#99FF33;margin:10px;padding:10px 0 10px 20px;font-size:11;"><center><span style="font-weight:bold;font-size:13px;">Your account has been created!</span><br />You may now login! <a href="http://www.deaglegame.net">Click here</a></div>';
}