Closed simonfernandes closed 3 years ago
Let's see what happens with #95 before we move ahead with this.
We need to clarify if we actually will trigger any of the events that currently exist and if we need to prevent these from happening.
If we don't, we can push this to a later milestone.
Related to https://github.com/UserOfficeProject/stfc-user-office-project/issues/71
Currently, the email service (responsible for how emails are sent - SMTP in our case) is configurable by environment, but the actual event handler that decides when emails are sent, who they're sent to, and what the email content is, is not. We should make this configurable to enable STFC and ESS to individually customise outgoing emails.
As mentioned by Fredrik in sprint planning, this is probably a good use for the tsyringe dependency injection framework.