---
title: "Command Controller"
manual: "Mail system"
version: "main"
permalink: "https://docs.typo3.org/permalink/mediaessenz/mail:command-controller@main"
source: "Reference/CommandController/Index.rst"
rendered: "2026-10-16T18:40:40+00:00"
---

# Command Controller {#command-controller}

MAIL comes with different command controller, which all can be added as task inside the TYPO3 scheduler module.

-   [MassMailingCommand](https://docs.typo3.org/permalink/mediaessenz/mail:massmailingcommand@main)
-   [AnalyzeBounceMailCommand](https://docs.typo3.org/permalink/mediaessenz/mail:analyzebouncemailcommand@main)
-   [SpoolSendCommand](https://docs.typo3.org/permalink/mediaessenz/mail:spoolsendcommand@main)
-   [ClearScssParserCacheCommand](https://docs.typo3.org/permalink/mediaessenz/mail:clearscssparsercachecommand@main)

## MassMailingCommand {#mass-mailing-command-controller}

This command is responsible for adding scheduled mailings to the sending queue.
There are two mandatory parameters:

-   site-identifier
-   send-per-cycle

The first one (site-identifier) is the identifier of the site configuration where MAIL can find its recipient sources configuration.
You can find it inside the TYPO3 sites module under the "General" tab.

The second (send-per-cycle) determine how many mails should be sent per cycle.

The time between a cycle can be defined in the "Frequency" field of a task.
e.g. `* * * * *` will run the task every minute, if you put `50` into the send-per-cycle field, 50 Mails per minute will be sent.

## AnalyzeBounceMailCommand {#analyze-bounce-mail-command-controller}

This command fetches returned mails from the mail account defined in the return-path field of the MAIL configuration module.
Depends on special headers, the reason of the return will be added to the report of the corresponding mail.

## SpoolSendCommand {#spool-send-command-controller}

This command controller can be used to send mail in a queue.
It's basically the same coming with TYPO3, but it uses a site specific mail transport configuration.
See site configuration `Transport.yaml` under Integration up in this manuel.
To make this command controller work, it is also necessary to set `transport_spool_type` to `file` or `memory`. if the type was set to `file`, the `transport_spool_type` has to be set as well, e.g. to `upload/tx_mailspool/`.
This command controller is not really needed by this extension, since the sending is already queued by the MassMailingCommand.
But if a developer wants to use the extended Mail-Classes `MEDIAESSENZMailMail(Mailer|MailMessage)` inside their own extension, it can be usefully.

## ClearScssParserCacheCommand {#clear-scss-parser-cache-command-controller}

This command controller clears the scss parser cache files located in typo3temp/assets/mail/css.
This cache is also cleared after a mail report is deleted.
