From 0de9fd4ce81392508ce9648e2ae279912d7f9ed5 Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Sun, 10 Mar 2013 16:05:42 -0700 Subject: New user-emails. --- pages/login.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'pages') 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 = "
Error; $explination \n -- cgit v1.2.3