Download the PHP package hakito/cakephp-mailqueue-plugin without Composer
On this page you can find all versions of the php package hakito/cakephp-mailqueue-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hakito/cakephp-mailqueue-plugin
More information about hakito/cakephp-mailqueue-plugin
Files in hakito/cakephp-mailqueue-plugin
Package cakephp-mailqueue-plugin
Short Description Plugin to store mail in a queue for later sendout
License GPL-2.0
Homepage https://github.com/hakito/CakePHP-Mailqueue-Plugin
Informations about the package cakephp-mailqueue-plugin
CakePHP-Mailqueue-Plugin
CakePHP 5.x plugin to store mail in a queue for later sendout.
When working with emails on a webservice sending email blocks the http request until the email is actually sent out. This can be frustrating for a user especially if the smtp server does not respond promptly.
With this plugin you can save the mail to a local queue file and invoke the actual transport for example with a cron fired cake shell command.
Installation
If you are using composer simply add it with:
Otherwise download the plugin to app/Plugin/Mailqueue.
Load the plugin in your bootstrap method
Configuration
Add a transport entry to your app_local.php
Queue a mail
Send mail to the queue as usually in cake
Do the real sendout
Use cake shell to do the real sendout. The shell script requires 2 arguments. The first is the name of your queue configuration and the second the name of the config to use for the real sendout.
In your app directory execute: