Investigate setting up a custom email transport class that allows the email-sending method from Cake's core to be used (which the transport class then adds to the job queue) instead of going through TableRegistry::get('Queue.QueuedJobs')->createJob()
Reference: https://github.com/dereuromark/cakephp-queue/tree/master/docs#using-queuetransport
Benefits:
- Decouples "send an email" commands from "how to send an email" logic so that the latter is centralized and easier to change or replace in the future