/** * @desc send mail notification after account validation * @param object $result * @return boolean */ private static function sendNotification($result) { $mail = new Enterprise_Mailer('UTF-8'); $mailDatas = new stdClass(); $mailDatas->lang = $result->lang; $mailDatas->scriptName = 'semaine-1'; $mailDatas->view->week = $mailDatas->scriptName; $mailDatas->view->email = $result->email; $mailDatas->view->userKey = $result->loginDirect; $mail->build(); $mail->render($mailDatas); return true; }
private static function sendNotification($datas, $loginDirect) { $mail = new Enterprise_Mailer('UTF-8'); $mailDatas = new stdClass(); $mailDatas->lang = $datas->lang; $mailDatas->scriptName = 'confirmation'; $mailDatas->view->email = $datas->email; $mailDatas->view->password = $datas->password; $mailDatas->view->userKey = $loginDirect; $mail->build(); $mail->render($mailDatas); }
public function massAction() { $mail = new Enterprise_Mailer('UTF-8'); $mailDatas = new stdClass(); $mailDatas->lang = 'fr'; $mailDatas->scriptName = 'youtube'; $mailDatas->view->email = '*****@*****.**'; $mailDatas->view->password = '******'; $mailDatas->view->userKey = 'abc'; $mail->build(); $mail->render($mailDatas); die; }
public function monitoringAction() { print_r($this->_request->getParams()); echo $this->_request->getParam('week'); if ($this->_request->getParam('week') == '1') { echo '<br />--------------- 发送邮件 : 第一周 ---------------<br />'; $mail = new Enterprise_Mailer('UTF-8'); $mailDatas = new stdClass(); $mailDatas->lang = 'cn'; $mailDatas->scriptName = 'monitoring'; $mailDatas->view->semaine = 'Monitoring: 第一周'; $mailDatas->view->email = array('*****@*****.**', '*****@*****.**', '*****@*****.**'); $mail->build(); $mail->render($mailDatas); } else { echo '<br />--------------- 发送邮件 : 空周 ---------------<br />'; $mail = new Enterprise_Mailer('UTF-8'); $mailDatas = new stdClass(); $mailDatas->lang = 'cn'; $mailDatas->scriptName = 'monitoring'; // $mailDatas->scriptName = 'semaine-1b'; $mailDatas->view->semaine = 'Monitoring: 空周'; $mailDatas->view->email = array('*****@*****.**', '*****@*****.**', '*****@*****.**'); $mail->build(); $mail->render($mailDatas); } }