1 defmodule Mix.Tasks.Pleroma.Email do
4 @shortdoc "Simple Email test"
5 @moduledoc File.read!("docs/administration/CLI_tasks/email.md")
7 def run(["test" | args]) do
8 Mix.Pleroma.start_pleroma()
18 email = Pleroma.Emails.AdminEmail.test_email(options[:to])
19 {:ok, _} = Pleroma.Emails.Mailer.deliver(email)
22 "Test email has been sent to #{inspect(email.to)} from #{inspect(email.from)}"