Create pleroma.email mix task

Closes: https://git.pleroma.social/pleroma/pleroma/issues/1061
This commit is contained in:
Haelwenn (lanodan) Monnier 2020-01-20 13:23:21 +01:00
commit 4eb935be78
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE
5 changed files with 116 additions and 0 deletions

View file

@ -0,0 +1,24 @@
# Managing emails
{! backend/administration/CLI_tasks/general_cli_task_info.include !}
## Send test email (instance email by default)
```sh tab="OTP"
./bin/pleroma_ctl email test [--to <destination email address>]
```
```sh tab="From Source"
mix pleroma.email test [--to <destination email address>]
```
Example:
```sh tab="OTP"
./bin/pleroma_ctl email test --to root@example.org
```
```sh tab="From Source"
mix pleroma.email test --to root@example.org
```