diff options
-rw-r--r-- | pages/login.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pages/login.php b/pages/login.php index 4858e57..f3510c0 100644 --- a/pages/login.php +++ b/pages/login.php @@ -138,6 +138,7 @@ try { }
include_once('includes/chats.php');
addchat(-1, "New user registered: \"$display\"");
+ sendNewUserEmail($userID, $email, $display, $dateJoined);
}
//If 'remember me' use this for cookie password
//$_SESSION['Passcode'] = MD5($Password.$Pepper.$Username);
@@ -175,6 +176,25 @@ try { echo $e->getMessage();
}
+function sendNewUserEmail($userID, $email, $display, $dateJoined) {
+ global $mydomain;
+ include_once('./includes/emails.php');
+ $emailBody = "Thank you for signing in to Pathery!
+
+Questions or feedback? Please reply to this email!
+
+Useful Links:
+Change your display name: $mydomain"."cp
+View your achievements and stats: $mydomain"."achievements?id="."$userID
+
+Happy Pathing,
+
+ The Pathery Team
+";
+ $emailSubject = 'Welcome to Pathery.com!';
+ QueueEmail(0, $email, $emailSubject, $emailBody, 5, true);
+}
+
function throwLoginError($data, $explination) {
$randCode = rand(10000, 99999);
$errortext = "<br />Error; $explination \n
|