# Notification queue

All notification emails go through a queue before actual delivery. This allows keeping a history and a list of the various emails sent.

An automatic action (`queuedmail`) allows the sending of pending emails (see [Configure automatic actions](/documentation/modules/configuration/crontasks.md)). Another automatic action (`queuemailclean`) cleans the queue by keeping only recent emails.

The delay applied for sending notifications can be defined at entity level, see [administration by entity](/documentation/modules/administration/entities.md)). This allows for example in the case of rapid multiple modifications of an object to send only one notification.

{% hint style="warning" %}
using the queue does not work for a change, problem or ticket itself, only for a sub-object. For example, when changing the impact of a ticket, the email will be sent immediately; on the other hand, in the event of addition or modification of a follow-up, a task, a validation request... the email will be placed in the queue.
{% endhint %}

<figure><img src="/files/DGjpBbf0h3iwqciulyPR" alt="images/mailqueue.png"><figcaption><p>Example of queue</p></figcaption></figure>

In the example above, the deadline for sending email notifications has been set to 20 minutes in the configuration of the entity; as a consequence the sending date is set at 20 minutes after the creation date.

Once the notification has been sent, the queue is placed in the recycle bin with the date sent.

{% hint style="info" %}
there will be as many queues in the recycle bin as there are recipients, each with its own sending date.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.glpi-project.org/documentation/modules/administration/mailqueue.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
