function send() { $tpl = new jTpl(); $rep = $this->getResponse('text'); $dao = jDao::get('NewsLetter~newsLetter'); $r = $dao->get($this->param('id')); $emailSrv = new EmailService(); $serveursDown = $emailSrv->sendNewsLetter($r); $rep->content = ""; foreach ($serveursDown as $s) { $rep->content .= $s . "is down<br>"; } //$tpl->assign('emails',$emails); //$tpl->assign('text',$r->text); //$rep->body->assign('MAIN', $tpl->fetch('email_sent')); return $rep; }