瀏覽代碼

Merge branch 'dev'

master
Guillaume Bourgeois 5 年之前
父節點
當前提交
fcb6af4de3
共有 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]);

Loading…
取消
儲存