include_once('classes/cs_mail_obj.php'); $mail_obj = new cs_mail_obj(); $mail_obj->setMailFormHeadLine($translator->getMessage('USER_PASSWORD_CHANGE_HEADLINE')); $mail_subject = $translator->getMessage('MAIL_SUBJECT_USER_PASSWORD_CHANGE',$context_item->getTitle()); $mail_body = $translator->getEmailMessage('MAIL_BODY_HELLO',$user->getFullname()); $mail_body .= LF.LF; $mail_body .= $translator->getEmailMessage('MAIL_BODY_USER_PASSWORD_CHANGE',$user->getUserID(),$context_item->getTitle(),$_POST['password']); $mail_body .= LF.LF; $mail_body .= $translator->getEmailMessage('MAIL_BODY_CIAO',$current_user->getFullname(),$context_item->getTitle()); $url = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].'?cid='.$environment->getCurrentContextID(); $mail_body .= LF.LF.$url; $mail_obj->setMailFormHints($translator->getMessage('USER_MAIL_ADMIN_DESC')); $mail_obj->setSubject($mail_subject); $mail_obj->setContent($mail_body); $sender[$current_user->getFullName()] = $current_user->getEMail(); $mail_obj->setSender($sender); $receiver[$user->getFullName()] = $user->getEMail(); $mail_obj->addReceivers($receiver); $params = array(); $params['iid'] = $iid; $mail_obj->setBackLink($environment->getCurrentContextID(), 'account', 'detail', $params); unset($params); $mail_obj->toSession(); redirect($environment->getCurrentContextID(),'mail','process','');