Browse Source

[Backend] Cron process orders : problème envoi Mailjet à une adresse vide

feature/souke
Guillaume Bourgeois 1 year ago
parent
commit
a5b09bdee3
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      backend/controllers/CronController.php

+ 4
- 2
backend/controllers/CronController.php View File

]); ]);


foreach ($userArray as $user) { foreach ($userArray as $user) {
$mail->setTo($user->email)->send();
$mailOrdersSend = true;
if($user->email && strlen($user->email) > 0) {
$mail->setTo($user->email)->send();
$mailOrdersSend = true;
}
} }
} }



Loading…
Cancel
Save