1 defmodule Mix.Tasks.Pleroma.Email do
5 @shortdoc "Simple Email test"
6 @moduledoc File.read!("docs/administration/CLI_tasks/email.md")
8 def run(["test" | args]) do
9 Mix.Pleroma.start_pleroma()
10 Application.ensure_all_started(:swoosh)
20 email = Pleroma.Emails.AdminEmail.test_email(options[:to])
21 {:ok, _} = Pleroma.Emails.Mailer.deliver(email)
23 shell_info("Test email has been sent to #{inspect(email.to)} from #{inspect(email.from)}")