Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-78261

Add $CFG->noemaileverexcept to disallow most emails, but allow a select few

    XMLWordPrintable

Details

    • Easy

    Description

      This would have the same format as divertallemailsexcept and also be a textarea manageable in the UI.

      A super common use case for this is a client is in preproduction, we want emails off but then want to test emails is a cautious manner and allow just emails to one domain, or just emails to a handful of testers. 

      We currently manage this at the postfix layer, but it would be nice to expose this directly in Moodle - even if the list is forced to a value in config.php it is still nicer to make it readable in the UI.

      • New textarea with one email filter expression per line the same as divertallemailsexcept
      • Changes to the email test tool so that it shows if the email should have been sent or not
      • I think this should be based on top of MDL-49827

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              brendanheywood Brendan Heywood
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: