We currently have email sending in twothree places. One in the SpecialGlobalRenameQueue and another in the SpecialGlobalVanishRequest and one in the maintenance script.
These two methods are similar but different,All this methods are quite similar and have them duplicated may result is inconsistency depending of where the email is sent from. To mitigate from this issue, we should refactor the email functionality to be able to abstract it and re-use it in the different methods. As part of this refactoring we are also going to take care of an issue with translation.
The current implementations either uses the "stewart" wiki language to send emails (Renamer and vanish), or the current person wiki (SpecialVanishRequest) or english (maintenance). and it would be good to standardize them so that we just have one code to handle both.This should be changes to send the email using the "user specific" language.
AC:
- [ ] Refactor the email method to ensure consistency
- [ ] Ensure the email is receipt with the user language in all three scenario