浏览代码

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

refactoring
父节点
当前提交
935d9f7762
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. +9
    -0
      backend/models/MailForm.php

+ 9
- 0
backend/models/MailForm.php 查看文件

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

正在加载...
取消
保存