Skip to content

Commit

Permalink
Merge pull request #137 from cakephp/robertpustulka-patch-1
Browse files Browse the repository at this point in the history
Update documentation with new transport config example.
  • Loading branch information
markstory authored Oct 12, 2023
2 parents 9a91c98 + a9a31aa commit cbc293b
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions docs/en/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -299,14 +299,15 @@ queue jobs, you can use the ``QueueTransport``. In your application's

return [
// ... other configuration
'EmailTransport' => [
'EmailTransport' => [
'default' => [
'className' => MailTransport::class,
// Configuration for MailTransport.
]
'queue' => [
'className' => QueueTransport::class,
// The transport to use inside the queue job.
'transport' => MailTransport::class,
'config' => [
// Configuration for MailTransport.
]
// The transport name to use inside the queue job.
'transport' => 'default',
]
],
'Email' => [
Expand All @@ -320,7 +321,7 @@ queue jobs, you can use the ``QueueTransport``. In your application's

With this configuration in place, any time you send an email with the ``default``
email profile CakePHP will generate a queue message. Once that queue message is
processed the ``MailTransport`` will be used to deliver the email messages.
processed the default ``MailTransport`` will be used to deliver the email messages.

Run the worker
==============
Expand Down

0 comments on commit cbc293b

Please sign in to comment.