<?php
$to = $_GET['email'];
$subject = "Sign Up";
$txt = "<html>
<head>
<title>SocialHub - Sign Up</title>
</head>
<body>
<div><table border='0' cellpadding='0' cellspacing='0' style='background-color:#3333ff;font-family:Sarala,sans-serif;color:#ffffff;border-collapse:collapse;margin:0;padding:0;background-color:#3333ff;font-family:Arial,Helvetica,sans-serif;width:100%' width='100%'>
    <tbody>
        <tr>
            <td align='center'>
            <div style='padding-top:25px;padding-bottom:10px;padding-left:5px;padding-right:5px;background-image:url(http://i.imgsafe.org/e8be26b.png);background-repeat:no-repeat;background-position:50% 50%;width:162px;min-height:41px;text-indent:100%;white-space:nowrap;overflow:hidden;border-collapse:collapse;margin:0;padding:0;background-color:#3333ff;width:100%;min-height:80px;max-height:80px;min-height:80px'>SocialHub</div>

				<h3 style='border-collapse:collapse;margin:0;padding:0;background-color:#3333ff;color:#ffffff;width:100%;font-family:Sarala,sans-serifalign:center;'>Sign Up</h3>
            </td>
        </tr>
    </tbody>
</table>

<div style='font-family:Sarala,sans-serif'>
<p style='padding-left:50px;padding-right:50px;padding-top:10px'>Thank You For Signing Up To SocialHub, By Using SocialHub You Are Able To Connect With Friends And Family Wherever They Are In The World. SocialHub Allows You Share Posts Which Are Vital In The Ever Changing World And Create Group Chats For You And Your Friends. Also You Can Friend People For The Best Overall User Expirence.<br><br>All Of What You Are Looking For Is Just A Click Away<br> <a href='http://socialhub.vacau.com/' style='text-decoration:none' target='_blank'>Sign In</a>
</body>
</html>";
$headers = "From: SocialHub <no-reply@socialhub>" . "\r\n" .
"CC: " . $_GET['email'];
$headers .= "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";

mail($to,$subject,$txt,$headers);
header("location: http://" . $_GET['ref']);
?>