Page MenuHomePhabricator

Introduce UserMailer as a service
Closed, ResolvedPublic



At the moment the sending emails are possible using a static UserMailer::send function.
It makes impossible to write tests for code which is going to send emails.

Expected result

SendMail class/interface should be introduced and registered in MediaWikiSerrvices.

Event Timeline

Change 578309 had a related patch set uploaded (by Peter.ovchyn; owner: Peter.ovchyn):
[mediawiki/core@master] Introduce EmailSender as service

@Pchelolo Damn, it's impossible to keep it on both boards/projects. Don't you mind if I add it back to Contractor Workboard as at the moment it's my primary operational board? Once I completely switch to Clinic Duty I'll use its board.

Change 578309 merged by jenkins-bot:
[mediawiki/core@master] Introduce Emailer as service