Overview
SHA1:0a9b20204afa230c4aa182d97477e0d0463e75ea
Date: 2019-01-11 17:34:19
User: bohwaz
Comment:ne rien envoyer avant d'avoir vérifier toutes les adresses email destinataires
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2019-01-11
17:35
[c909571998] Fix lien objet (user: bohwaz, tags: trunk, stable)
17:34
[0a9b20204a] ne rien envoyer avant d'avoir vérifier toutes les adresses email destinataires (user: bohwaz, tags: trunk)
2019-01-10
11:13
[a2544d6b57] Fix bouton visibilité mot de passe sur mobile (user: bohwaz, tags: trunk, stable)
Changes

Modified src/include/lib/Garradin/Membres.php from [747eeb941f] to [71d5d654d3].

324
325
326
327
328
329
330








331
332
333
334
335
336
337

        return $fields;
    }

    public function sendMessage(array $recipients, $subject, $message, $send_copy)
    {
        $config = Config::getInstance();









        foreach ($recipients as $recipient)
        {
            Utils::sendEmail(Utils::EMAIL_CONTEXT_BULK, $recipient->email, $subject, $message, $recipient->id);
        }

        if ($send_copy)







>
>
>
>
>
>
>
>







324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345

        return $fields;
    }

    public function sendMessage(array $recipients, $subject, $message, $send_copy)
    {
        $config = Config::getInstance();

        foreach ($recipients as $recipient)
        {
            if (!SMTP::checkEmailIsValid($recipient, true))
            {
                throw new UserException(sprintf('Adresse email invalide : "%s". Aucun message n\'a été envoyé.', $recipient));
            }
        }

        foreach ($recipients as $recipient)
        {
            Utils::sendEmail(Utils::EMAIL_CONTEXT_BULK, $recipient->email, $subject, $message, $recipient->id);
        }

        if ($send_copy)