Skip to content

Commit

Permalink
Correção envio de email cobrança
Browse files Browse the repository at this point in the history
  • Loading branch information
cabralwms committed Mar 28, 2024
1 parent 49a0bb2 commit 370963e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/libraries/Gateways/GerencianetSdk.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ public function enviarPorEmail($id)
'cobrancas/emails/cobranca',
[
'cobranca' => $cobranca,
'emitente' => $emitente[0],
'emitente' => $emitente,
'paymentGatewaysConfig' => $this->ci->config->item('payment_gateways'),
],
true
);

$assunto = "Cobrança - " . $emitente[0]->nome;
$assunto = "Cobrança - " . $emitente->nome;
if ($cobranca->os_id) {
$assunto .= ' - OS #' . $cobranca->os_id;
} else {
Expand All @@ -77,7 +77,7 @@ public function enviarPorEmail($id)
$remetentes = [$cobranca->email];
foreach ($remetentes as $remetente) {
$headers = [
'From' => $emitente[0]->email,
'From' => $emitente->email,
'Subject' => $assunto,
'Return-Path' => ''
];
Expand Down

0 comments on commit 370963e

Please sign in to comment.