octobercms/library — pull request #45 by egrego-dot-re (2014-10-06 20:12:46+00:00)
Title: add support for mail interception for queueing

In current state there is no sane way to hook into all Mail::send calls to queue them. Event mailer.prepareSend allows for such functionality by passing original data and closure to another Mail::queue call.