This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2021-01-04 23:41:10 +00:00
|
|
|
---
|
|
|
|
title: Troubleshooting Email sending
|
|
|
|
---
|
|
|
|
|
|
|
|
To test if an email stage, or the global email settings are configured correctly, you can run the following command:
|
|
|
|
|
|
|
|
````
|
|
|
|
./manage.py test_email <to address> [-s <stage name>]
|
|
|
|
```
|
|
|
|
|
|
|
|
If you omit the `-s` parameter, the email will be sent using the global settings. Otherwise, the settings of the specified stage will be used.
|
|
|
|
|
|
|
|
To run this command with docker-compose, use
|
|
|
|
|
|
|
|
```
|
2021-09-14 14:35:01 +00:00
|
|
|
docker-compose exec worker ./manage.py test_email [...]
|
2021-01-04 23:41:10 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
To run this command with Kubernetes, use
|
|
|
|
|
|
|
|
```
|
2021-09-05 18:25:42 +00:00
|
|
|
kubectl exec -it deployment/authentik-worker -c authentik -- ./manage.py test_email [...]
|
2021-01-04 23:41:10 +00:00
|
|
|
```
|