Skip to content

Investigate using custom email transport for adding emails to queue #72

@PhantomWatson

Description

@PhantomWatson

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions