<?php include 'manager/_pi/base.php'; ?> <? $mail_status = null; if(isset($_POST['email'])) { // retrieve password by username $email = $_POST['email']; $client = Client::findClientByEmail($email); $subject = "Password request for Piggyments.com"; $message = "<html> <head> <title>{$subject}</title> </head> <body> <p>Hi {$client->fldClientFirstName} {$client->fldClientLastname}</p> <table> <tr> <td>Your Username:</td> <td><b>{$client->fldClientUsername}</b></td> </tr> <tr> <td>Your Password:</td> <td><b>{$client->fldClientPassword}</b></td> </tr> </table> <p>Login here: <a href='http://www.piggyments.com/dev/login.html'>http://www.piggyments.com/dev/login.html</a>. Once logged in you can change your password </p>