TWLight icon indicating copy to clipboard operation
TWLight copied to clipboard

POC: Add email sender with API:Emailuser

Open suecarmol opened this issue 5 months ago • 1 comments

Description

  • Removed the version item in all docker-compose files (the warning was bothering me)
  • Created the send_email_via_api command for other services to send emails from
  • Modified the retrieve_monthly_users command to use the newly created send email command

Caveats from this approach:

  • Rate-limiting handling has not been implemented
  • If TWL users have a different email address from their Wikipedia account, it could be unwelcome to send an email to that address
  • If a TWL user does not have the Allow other users to email me option set in Special:Preferences, then they will not receive an email

Rationale

Our email sending system has issues when sending to certain accounts. This is a possible solution to that problem.

Phabricator Ticket

T383070

How Has This Been Tested?

Tested locally. You can run python manage.py retrieve_monthly_users and change the target parameter to your Wikipedia username.

Screenshots of your changes (if appropriate):

Types of changes

What types of changes does your code introduce? Add an x in all the boxes that apply:

  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [x] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [ ] Minor change (fix a typo, add a translation tag, add section to README, etc.)

suecarmol avatar Aug 15 '25 02:08 suecarmol