isLoggedin()) { $menu = renderMenu($inicio->and($pages->get('/noticias')->and($pages->get('/contacto')))); } else { $menu = renderMenu($inicio->and($inicio->children)); } $saida = ''; $captcha = $modules->get('MarkupGoogleRecaptcha'); if ($captcha->verifyResponse() === true) { $correo = wireMail(); //$correo->to($configuracion['contacto_correo']); //$correo->bcc('laegnur@artabro.org'); $correo->to('laegnur@artabro.org'); $correo->from($sanitizer->email($input->post->correo)); $correo->fromName($sanitizer->text($input->post->nome)); $correo->subject($sanitizer->text($input->post->asunto)); $correo->body($sanitizer->text($input->post->mensaxe)); $enviado = $correo->send(); if($enviado) { $saida .= '

' . _x('Mail sent', 'mail sent'); } else { $saida .= '

' . _x('Error sending email', 'error sending mail'); } $saida .= '
' . _x('Go back to form', 'go back to form') .'

'; } else { $saida .= '
'; $saida .= ''; $saida .= ''; $saida .= ''; $saida .= ''; $saida .= ''; $saida .= ''; $saida .= ''; $saida .= ''; $saida .= $captcha->render(); $saida .= ''; $saida .= '
' . "\n"; $saida .= $captcha->getScript(); } ?>

title);?>

Formulario de contacto