File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -299,14 +299,15 @@ queue jobs, you can use the ``QueueTransport``. In your application's
299299
300300 return [
301301 // ... other configuration
302- 'EmailTransport' => [
302+ 'EmailTransport' => [
303+ 'default' => [
304+ 'className' => MailTransport::class,
305+ // Configuration for MailTransport.
306+ ]
303307 'queue' => [
304308 'className' => QueueTransport::class,
305- // The transport to use inside the queue job.
306- 'transport' => MailTransport::class,
307- 'config' => [
308- // Configuration for MailTransport.
309- ]
309+ // The transport name to use inside the queue job.
310+ 'transport' => 'default',
310311 ]
311312 ],
312313 'Email' => [
@@ -320,7 +321,7 @@ queue jobs, you can use the ``QueueTransport``. In your application's
320321
321322With this configuration in place, any time you send an email with the ``default ``
322323email profile CakePHP will generate a queue message. Once that queue message is
323- processed the ``MailTransport `` will be used to deliver the email messages.
324+ processed the default ``MailTransport `` will be used to deliver the email messages.
324325
325326Run the worker
326327==============
You can’t perform that action at this time.
0 commit comments