mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 11:19:19 +00:00
Merge branch 'fix/email-task-otp' into 'develop'
Fix email mix task on OTP releases Closes #1548 See merge request pleroma/pleroma!2191
This commit is contained in:
commit
544bdbfb90
1 changed files with 2 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
||||||
defmodule Mix.Tasks.Pleroma.Email do
|
defmodule Mix.Tasks.Pleroma.Email do
|
||||||
use Mix.Task
|
use Mix.Task
|
||||||
|
import Mix.Pleroma
|
||||||
|
|
||||||
@shortdoc "Simple Email test"
|
@shortdoc "Simple Email test"
|
||||||
@moduledoc File.read!("docs/administration/CLI_tasks/email.md")
|
@moduledoc File.read!("docs/administration/CLI_tasks/email.md")
|
||||||
|
@ -18,8 +19,6 @@ defmodule Mix.Tasks.Pleroma.Email do
|
||||||
email = Pleroma.Emails.AdminEmail.test_email(options[:to])
|
email = Pleroma.Emails.AdminEmail.test_email(options[:to])
|
||||||
{:ok, _} = Pleroma.Emails.Mailer.deliver(email)
|
{:ok, _} = Pleroma.Emails.Mailer.deliver(email)
|
||||||
|
|
||||||
Mix.shell().info(
|
shell_info("Test email has been sent to #{inspect(email.to)} from #{inspect(email.from)}")
|
||||||
"Test email has been sent to #{inspect(email.to)} from #{inspect(email.from)}"
|
|
||||||
)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue