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

Expose divertallemailsto and divertallemailsexcept in the admin settings GUI

XMLWordPrintable

    • MOODLE_310_STABLE
    • MOODLE_310_STABLE
    • MDL-69600-divertemails
    • Hide
      1. Setup mail catcher or real email
      2. In config.php set up some email diverting rules

        $CFG->divertallemailsto = 'your@email.com';
        $CFG->divertallemailsexcept = 'exception@email.com,.*example.com';
        

      3. Confirm these are shown as normal settings here: YOUR_MOODLE_URL/admin/settings.php?section=outgoingmailconfig
      4. Delete them from config.php and then set them manually from the admin page.
      5. Test sending various emails using YOUR_MOODLE_URL/admin/testoutgoingmailconf.php and confirm the emails are diverted/not diverted as follows.
        Recipient Email diverted?
        s1@hello.com Yes
        exception@hello.com Yes
        exception@email.com No
        s1@example.com No

      Note: Diverted emails will have the word "DIVERTED" on their subject

      1. Test that diversion rules also work by separating them with line breaks instead of commas.

       

       

      Show
      Setup mail catcher or real email In config.php set up some email diverting rules $CFG->divertallemailsto = 'your@email.com'; $CFG->divertallemailsexcept = 'exception@email.com,.*example.com'; Confirm these are shown as normal settings here: YOUR_MOODLE_URL/admin/settings.php?section=outgoingmailconfig Delete them from config.php and then set them manually from the admin page. Test sending various emails using YOUR_MOODLE_URL/admin/testoutgoingmailconf.php and confirm the emails are diverted/not diverted as follows. Recipient Email diverted? s1@hello.com Yes exception@hello.com Yes exception@email.com No s1@example.com No Note: Diverted emails will have the word " DIVERTED " on their subject Test that diversion rules also work by separating them with line breaks instead of commas.    

      Just allow these to be managed in the gui, or at least visible in the gui if managed in config.php

            brendanheywood Brendan Heywood
            brendanheywood Brendan Heywood
            Anupama Dharmajan Anupama Dharmajan
            Jun Pataleta Jun Pataleta
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours
                5h

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.