blob: caf5516d3f8218aaf787e12e1fdc7a638f10672a [file]
=== MailToAllUsers
A mailet that helps to email to all users in the system. The emails are sent in batches to manage
the load. The first batch is sent directly, while the remaining batches are sent asynchronously.
==== Configuration parameters
*batchSize*::
The number of recipients to include in each batch. Optional, default to 100.
==== Sample configuration
[source,xml]
----
<matcher name="notify-matcher" match="org.apache.james.mailetcontainer.impl.matchers.And">
<matcher match="SenderIs=admin@gov.org"/>
<matcher match="RecipientIs=all@gov.org"/>
</matcher>
<mailet match="notify-matcher" class="MailToAllUsers">
<batchSize>100</batchSize>
</mailet>
----