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

Expose divertallemailsto and divertallemailsexcept in the admin settings GUI

    XMLWordPrintable

    Details

    • Testing Instructions:
      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.    
    • Affected Branches:
      MOODLE_310_STABLE
    • Fixed Branches:
      MOODLE_310_STABLE
    • Pull 3.10 Branch:
      MDL-69600-divertemails-MOODLE_310_STABLE
    • Pull Master Branch:
      MDL-69600-divertemails

      Description

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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brendanheywood Brendan Heywood
              Reporter:
              brendanheywood Brendan Heywood
              Peer reviewer:
              Anupama Dharmajan
              Integrator:
              Jun Pataleta
              Tester:
              Anna Carissa Sadia
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Nov/20

                  Time Tracking

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