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

Expose divertallemailsto and divertallemailsexcept in the admin settings GUI

    XMLWordPrintable

Details

    • 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.    

    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

              brendanheywood Brendan Heywood
              brendanheywood Brendan Heywood
              Anupama Dharmajan Anupama Dharmajan
              Jun Pataleta Jun Pataleta
              Anna Carissa Sadia Anna Carissa Sadia
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                9/Nov/20

                Time Tracking

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