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

Site fullname not filtered when sending test email message

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.7.6, 3.8.2, 3.9
    • Fix Version/s: 3.7.6, 3.8.3
    • Component/s: Administration, Email
    • Labels:
    • Testing Instructions:
      Hide

      This is easier to test with the Moodle Docker container, which already has outgoing mail configured & Mailhog set up to collect the messages

      Configure multilang site full name

      1. Log in as admin
      2. Navigate to Site administration > Front page > Front page settings in Site administration
      3. Set Full site name to the following: <span class="multilang" lang="en">Moodle (EN)</span><span class="multilang" lang="de">Moodle (DE)</span>
      4. Navigate to Plugins > Filters > Manage filters in Site administration
      5. Set Multi-Language Content to On & Apply to to Content and headings
      6. Perform sanity check by visiting Site home and confirming the site heading shows "Moodle (EN)" and not "Moodle (DE)"

      Send test email

      1. Navigate to Server > Email > Outgoing mail configuration in Site administration
      2. Click on Test outgoing mail configuration
      3. In the field To email address enter: foo@example.com
      4. Press Send a test message
      5. Confirm that the e-mail message received has the subject: "Moodle (EN): test message"
      Show
      This is easier to test with the Moodle Docker container, which already has outgoing mail configured & Mailhog set up to collect the messages Configure multilang site full name Log in as admin Navigate to Site administration > Front page > Front page settings in Site administration Set Full site name to the following: <span class="multilang" lang="en">Moodle (EN)</span><span class="multilang" lang="de">Moodle (DE)</span> Navigate to Plugins > Filters > Manage filters in Site administration Set Multi-Language Content to On & Apply to to Content and headings Perform sanity check by visiting Site home and confirming the site heading shows "Moodle (EN)" and not "Moodle (DE)" Send test email Navigate to Server > Email > Outgoing mail configuration in Site administration Click on Test outgoing mail configuration In the field To email address enter: foo@example.com Press Send a test message Confirm that the e-mail message received has the subject: "Moodle (EN): test message"
    • Affected Branches:
      MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE, MOODLE_38_STABLE
    • Pull 3.8 Branch:
    • Pull Master Branch:

      Description

      When sending a test email while setting outgoing email configuration, the site fullname is used in the subject of the message

      Filtering isn't performed on the site fullname, which causes multilang tags to be ignored:

        Attachments

          Activity

            People

            Assignee:
            pholden Paul Holden
            Reporter:
            pholden Paul Holden
            Peer reviewer:
            Mikel Martín Corrales
            Integrator:
            Eloy Lafuente (stronk7)
            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:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              11/May/20

                Time Tracking

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