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

Have a way to append fixed arbitrary headers to all emails

XMLWordPrintable

    • MOODLE_310_STABLE
    • MOODLE_310_STABLE
    • MDL-69265-email-headers
    • 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

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

            brendanheywood Brendan Heywood
            brendanheywood Brendan Heywood
            Nicholas Hoobin Nicholas Hoobin
            Andrew Lyons Andrew Lyons
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 55 minutes
                55m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.