function sendViaGoogle() { $rep = $this->getResponse('text'); $emailSrv = new EmailService(); $emailSrv->getEmails(); foreach ($emailSrv->getEmails() as $email) { //$rep->content .= $email->email."\n"; $email = "*****@*****.**" . "\n"; $data = array('email' => $email); $pageweb = jHttp::quickPost('http://localhost/testapp/mailServlet', $data); $rep->content .= $pageweb; } return $rep; }