Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

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' => "http://localhost/novo-projeto/user/login"
     ];
$mail->send($email, 'signup', $params);

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


2.2k
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!!!