<?php 

 
class Mailer
{
   /**
    * sendNewPass - Sends the newly generated password
    * to the user's email address that was specified at
    * sign-up.
    */
   function sendNewPass($user, $email, $pass){
      $from = "From: ".EMAIL_FROM_NAME." <".EMAIL_FROM_ADDR.">";
      $subject = "Locaholic - Your new password";
      $body = $user.",\n\n"
             ."We've generated a new password for you at your "
             ."request, you can use this new password with your "
             ."username to log in to Logaholic.\n\n"
             ."Username: ".$user."\n"
             ."New Password: ".$pass."\n\n";
             /*
             ."It is recommended that you change your password "
             ."to something that is easier to remember, which "
             ."can be done by going to the My Account page "
             ."after signing in.\n";
             */
             
      return mail($email,$subject,$body,$from);
   }
}

/* Initialize mailer object */
$mailer = new Mailer;
 
?>
