Commit 7cdc914b authored by sandroresende's avatar sandroresende

inclusao email resposta encaminhamento

parent 35305797
......@@ -176,7 +176,8 @@ class EncaminhamentoController extends Controller
DB::commit();
if($encaminhamento->bln_concluido){
Mail::to($encaminhamento->email)->send(new RespostaEncaminhamento($encaminhamento));
$usuario = User::find($encaminhamento->user_id);
Mail::to($usuario->email)->send(new RespostaEncaminhamento($encaminhamento));
}
$ativarAba = 'encaminhamento';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment