Differences From Artifact [71d5d654d3]:

To Artifact [f75ceb8321]:


   327    327   
   328    328       public function sendMessage(array $recipients, $subject, $message, $send_copy)
   329    329       {
   330    330           $config = Config::getInstance();
   331    331   
   332    332           foreach ($recipients as $recipient)
   333    333           {
   334         -            if (!SMTP::checkEmailIsValid($recipient, true))
          334  +            if (!SMTP::checkEmailIsValid($recipient->email, true))
   335    335               {
   336         -                throw new UserException(sprintf('Adresse email invalide : "%s". Aucun message n\'a été envoyé.', $recipient));
          336  +                throw new UserException(sprintf('Adresse email invalide : "%s". Aucun message n\'a été envoyé.', $recipient->email));
   337    337               }
   338    338           }
   339    339   
   340    340           foreach ($recipients as $recipient)
   341    341           {
   342    342               Utils::sendEmail(Utils::EMAIL_CONTEXT_BULK, $recipient->email, $subject, $message, $recipient->id);
   343    343           }