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

Site fullname not filtered when sending test email message

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.7.6, 3.8.2, 3.9
    • 3.7.6, 3.8.3
    • Administration, Email
    • MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
    • MOODLE_37_STABLE, MOODLE_38_STABLE
    • 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"

    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

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

            Dates

              Created:
              Updated:
              Resolved:
              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