We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Empty view after send email from SwiftMailer

After save in database, I want to send an email confirmation. I'm using SwiftMailer and here is the problem... The email has been sent, but dont show the view after send email, appears an empty view, but the email works fine, i have receive the email. It seems like after send email, the program stop.

$mail = new Mail();
    $params = [
        'name' => 'Test',
        'link' => "https://localhost/novo-projeto/user/login"
     ];
$mail->send($email, 'signup', $params);

$this->view->pick('layouts/usuario_confirmacao/confirmar_cadastro');


8.4k
Accepted
answer

check php error log that could shed some light or

error_reporting(E_ALL);

before sending email

check php error log that could shed some light or

error_reporting(E_ALL);

before sending email

Thanks for the support. i changed $this->view->pic(); to $this->response->redirect(); and then works!!!