Download the PHP package sudhaus7/mail-spool without Composer
On this page you can find all versions of the php package sudhaus7/mail-spool. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sudhaus7/mail-spool
More information about sudhaus7/mail-spool
Files in sudhaus7/mail-spool
Package mail-spool
Short Description Integrates swiftmailer spool transport for TYPO3.
License GPL-3.0+
Homepage https://github.com/sudhaus7/TYPO3.EXT.mail_spool
Informations about the package mail-spool
Documentation
This is a Fork of https://github.com/r3h6/TYPO3.EXT.mail_spool
This extension integrates the swiftmailer spool transport for TYPO3 v8 and v9. The Spool Command has been rewritten to use the Symfony Console, and in 'file' mode the spooled E-Mails are written to the result of Environment::getVarPath()
Installation
With composer req sudhaus7/mail-spool
Configuration
You can configure the type of spool and the location where the messsages get stored in the extension configurations.
:spool: file Messages get stored to the file system till they get sent through the scheduler or cli command.
memory Messages get send at the end of the running process if no error occurs.
classname Custom class which implements the Swift_Spool interface.
Planned are spoolers for RabbitMQ and Beanstalk
:spool_file_path: Path to directory relative to Environment::getVarPath() where the spooled messages get stored. Should not be accessible from outside!
:transport_real: Transport used for sending e-mails. Default is same as defined in install tool.
:do_not_spool_syslog_messages: Send syslog messages immediatly through mail transport.
Integration
If you are using the file spool, you must set up an extbase scheduler task or execute the command "spool:send".
Scheduler
There is no direct Scheduler Option anymore, but the process can be scheduled with https://github.com/helhum/typo3-crontab
Commands (CLI)
See ./vendor/bin/typo3 mailspool:runspool -h
for details.
If you like run the command as a daemon on linux systems you can try Upstart.
# Example
# /etc/init/myscript.conf
# sudo service myscript start
# sudo service myscript stop
# sudo service myscript status
# Your script information
description "Send spooled messages."
author "R3H6"
# Describe events for your script
start on startup
stop on shutdown
# Respawn settings
respawn
# respawn limit COUNT INTERVAL
respawn limit unlimited
# Run your script!
script
/var/www/dev7.local.typo3.org/typo3/cli_dispatch.phpsh extbase spool:send --daemon >/dev/null 2>&1
end script
FAQ
After installing, no e-mails get send anymore, why? Please read the section "Integration".
Contributing
Bug reports and pull request are welcome through GitHub.