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

Have a way to append fixed arbitrary headers to all emails

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Setup required

      1. MailCatcher / MailHog / Working e-mail

      Test

      1. Open Site admin -> Server -> Email -> Outgoing mail configuration
      2. Add a couple of custom headers, for example:

        X-Protective-Marking: VER=2012.3, NS=host.docker.internal, DLM=FOR-OFFICIAL-USE-ONLY
        X-OriginDomain: host.docker.internal
        

      3. Log out
      4. View the Login page
      5. Click the forgotten password link
      6. Enter a valid username
      7. Check the e-mail received and view the message Source
        1. Confirm you see your headers in the email
      Show
      Setup required MailCatcher / MailHog / Working e-mail Test Open Site admin -> Server -> Email -> Outgoing mail configuration Add a couple of custom headers, for example: X-Protective-Marking: VER=2012.3, NS=host.docker.internal, DLM=FOR-OFFICIAL-USE-ONLY X-OriginDomain: host.docker.internal Log out View the Login page Click the forgotten password link Enter a valid username Check the e-mail received and view the message Source Confirm you see your headers in the email
    • Affected Branches:
      MOODLE_310_STABLE
    • Fixed Branches:
      MOODLE_310_STABLE
    • Pull Master Branch:
      MDL-69265-email-headers

      Description

      This is almost exactly the same use case as  emailsubjectprefix in MDL-63569 but adding it to the headers instead. 

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brendanheywood Brendan Heywood
              Reporter:
              brendanheywood Brendan Heywood
              Peer reviewer:
              Nicholas Hoobin
              Integrator:
              Andrew Nicols
              Tester:
              Anna Carissa Sadia
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              7 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 - 55 minutes
                  55m