Esempio n. 1
0
					<p>Caleb Nance</p>
				</body>
			</html>
			';
            $msg_notify = '
			<html>
				<head>
					<title>New User - ' . $user['fname'] . ' ' . $user['lname'] . '</title>
				</head>
				<body>
					<p><strong>' . $user['fname'] . ' ' . $user['lname'] . '</strong></p>
					<p><strong>E-mail:</strong> ' . $user['email'] . '</p>
					<p><strong>Country:</strong> ' . $user['country'] . '</p>
				</body>
			</html>
			';
            FileHelper::sendEmail($user['email'], $email_from, 'Welcome to Black Rabbit!', $msg, $email_to, 'New User - ' . $user['fname'] . ' ' . $user['lname'], $msg_notify);
            header('location: index.php?msg=2');
            exit;
        } else {
            header('location: sign-up.php?msg=2');
            exit;
        }
    } else {
        header('location: sign-up.php?msg=1');
        exit;
    }
} else {
    header('location: sign-up.php?msg=1');
    exit;
}