Skip to content

Show addressing intent when email is rerouted to the notify address on DEBUGGING sites.

Robert Sinton requested to merge custom/feature/am_email_intent into custom/art_money

What I did

  • Inserted To:, Cc:, and Bcc: addresses into the subject, when DEBUGGING === TRUE, to help with checking intended email addressing.

Implications

Subject line is longer.

Note that I have used the subject line in this case, as opposed to e.g. custom email headers, in order to help with upcoming testing by an external testing service: all emails will go to all three testers, so we need them to be able to easily distinguish, e.g. account signup emails that they trigger while testing from otherwise identical emails triggered by the other testers.

This could be considered for merging into main zon-core.

Setup

Make sure your email address is in the notify config for the site you will test on.

How to test

  • Use a dev or testing site
  • Do something to generate an email that would normally go to an address that is not yours.
  • Observe that when it turns up at your address, the intended address(es) is/are included in the subject line.
  • Check that they are indeed the right ones.

Merge request reports