Explorar el Código

Merge branch 'dev'

prodstable
Guillaume Bourgeois hace 5 años
padre
commit
fcb6af4de3
Se han modificado 1 ficheros con 9 adiciones y 0 borrados
  1. +9
    -0
      backend/models/MailForm.php

+ 9
- 0
backend/models/MailForm.php Ver fichero

@@ -167,6 +167,15 @@ Produits disponibles :
'TextPart' => $this->message.$messageAutoText,
'HTMLPart' => nl2br($this->message).$messageAutoHtml
] ;

if(count($body['Messages']) == 50) {
$response = $mj->post(\Mailjet\Resources::$Email, ['body' => $body]);
$body['Messages'] = [] ;
}
}

if(count($body['Messages']) > 0) {
$response = $mj->post(\Mailjet\Resources::$Email, ['body' => $body]);
}
$response = $mj->post(\Mailjet\Resources::$Email, ['body' => $body]);

Cargando…
Cancelar
Guardar