1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Emails.Mailer do
6 use Swoosh.Mailer, otp_app: :pleroma
8 def deliver_async(email, config \\ []) do
9 PleromaJobQueue.enqueue(:mailer, __MODULE__, [:deliver_async, email, config])
12 def perform(:deliver_async, email, config), do: deliver(email, config)