Pārlūkot izejas kodu

[backend] Gestion de la limite d'envoi d'emails de Mailjet (50)

refactoring
Guillaume Bourgeois pirms 5 gadiem
vecāks
revīzija
935d9f7762
1 mainītis faili ar 9 papildinājumiem un 0 dzēšanām
  1. +9
    -0
      backend/models/MailForm.php

+ 9
- 0
backend/models/MailForm.php Parādīt failu

@@ -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]);

Notiek ielāde…
Atcelt
Saglabāt