Overview
SHA1:c909571998abc4f7f308ddf047bcf822b1316195
Date: 2019-01-11 17:35:04
User: bohwaz
Comment:Fix lien objet
Timelines: family | ancestors | descendants | both | trunk | stable
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2019-01-18
10:22
[8cc57b06eb] Insensibilité à la casse pour la correspondance quand on fait une demande de récupération de mot de passe (user: bohwaz, tags: trunk, stable)
2019-01-17
10:01
[511aee5412] Merge avec branche trunk (user: bohwaz, tags: dev)
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)
Changes

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

327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343

    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);
        }







|

|







327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343

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

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

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