Guilherme Costa
Guilherme Costa

Reputation: 310

Mail Queue processed but the Laravel don't send email

The Mail::queue method processes the service but does not send the mail.Nothing arrives in the destination email. The redis is working normally.enter image description here

 $data = ['nome_prefeitura'=>$gestora->pessoa->nome,'empresa'=>$n->economico->pessoa->nome,'pessoa'=>$n->pessoa->nome,'link'=>$link,'nome_secretaria'=>'Secretaria Fazenda de Dom Joaquim.'];
         Mail::queue('layout_email.email_nfse', $data, function ($m) use ($n) {
             $m->from('[email protected]', 'NFS-e');
             $m->to($n->email_envio, $n->pessoa->nome)->subject('Notificação de emissão de NFS-e');
         });



 CACHE_DRIVER=redis
    SESSION_DRIVER=redis
    QUEUE_DRIVER=redis

MAIL_DRIVER=smtp
MAIL_HOST=mail.com.br
MAIL_PORT=25
[email protected]
MAIL_PASSWORD=****
MAIL_ENCRYPTION=null

Upvotes: 1

Views: 303

Answers (1)

Guilherme Costa
Guilherme Costa

Reputation: 310

I changed my email server and it worked.

Upvotes: 1

Related Questions