> ## Documentation Index
> Fetch the complete documentation index at: https://help.pixwel.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Email

# Pixwel Email

## Templates

Template emails are stored in [/api/mails](https://github.com/Pixwel/platform/tree/2.x/api/mails).

## Testing

You can test email with [maildev](/maildev) on demo and development. Staging emails are sent to maildev on the Jenkins server at [http://stagingmaildev.pixwel.com/](http://stagingmaildev.pixwel.com/)

## Batching

Mails are batched up and sent using the [SendEmails command](https://github.com/Pixwel/platform/blob/2.x/api/extensions/command/SendEmails.php). Until this is triggered, nothing gets sent, unless that type of Email notification is set to immediate:

<img src="https://mintcdn.com/pixwel/LCc2un8fWfvdWtLT/img/prefs.png?fit=max&auto=format&n=LCc2un8fWfvdWtLT&q=85&s=f26ab18e9dec718c76761332ebae658d" alt="Setting mail preferences" width="1447" height="1026" data-path="img/prefs.png" />

The SendEmails command is triggered by the [send-emails queue](/services), so if you are not getting events processed, this is likely why - that these workers are not running. See [services documentation](/services) for details.

## Queues on docker

Docker runs the same [services](/services) as any other environment.

Do be aware, however:

* If you've cloned the production database, there might be massive queues of events to process that you don't want to run.
* You might prefer to run the commands directly in the console so you can see what's going on in real time

So, you can run them manually in the terminal:

```bash theme={null}
docker-compose exec app bash
cd /var/www/api
# Run the emails queue
li3 worker-sqs --queue=emails &
# Run the send-emails queue
li3 worker-sqs --queue=send-emails &
# Run the notifications queue
li3 worker-sqs --queue=notifications &
```

***

[Back to docs index](/) | [Next page in recommended reading order >>](/maildev)
