From: Daniel J. <dan...@in...> - 2008-08-27 16:59:15
|
Receive Password by eMail was not working wiser_platform/apps/frontend/modules/mail/actions actions.class.php I changed it to check if there is a problem with something else: With the changes it works. $mail_domain = sfConfig::get('app_mail_domain'); $user = $this->getRequest()->getAttribute('user'); $mail = new sfMail(); $mail->initialize(); $mail->setMailer('sendmail'); $mail->setCharset('utf-8'); $mail->setSender('info@' . $mail_domain); $mail->setFrom('info@' . $mail_domain); $mail->addReplyTo('admin@' . $mail_domain); $mail->addAddress( $user->getEmail() ); $mail->setSubject('Your new password'); $mail->setBody(' Dear '.$user->getName().', You are so absentminded. Next time, try to remember your password: '.$user->getpassword().' Regards, The My Company webmaster'); // $this->username = $user->getName(); // $this->password = $user->getNewpassword(); $mail->send(); $this->mail = $mail; } Is there a patch for this file? best regards Daniel |