Page MenuHomePhabricator

Introduce UserMailer as a service
Closed, ResolvedPublic

Description

Motivation

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

https://gerrit.wikimedia.org/r/578309

@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

https://gerrit.wikimedia.org/r/578309

Peter.ovchyn closed this task as Resolved.Mar 18 2020, 10:40 AM

Does this ticket conflict with T207621?