diff options
author | Alex Gleason <alex@alexgleason.me> | 2020-10-11 20:50:09 -0500 |
---|---|---|
committer | Alex Gleason <alex@alexgleason.me> | 2020-10-11 20:50:09 -0500 |
commit | 28005563f00028981cf516cceb16c2b55bd0e97c (patch) | |
tree | 5a5aa3cd467791d67de14834c6b6b9d654eb19ff /lib/pleroma/emails/user_email.ex | |
parent | c69b20540958b4de9cc4fd66595d43f26bcd5fd1 (diff) | |
download | pleroma-28005563f00028981cf516cceb16c2b55bd0e97c.tar.gz |
Send approval pending email during registration
Diffstat (limited to 'lib/pleroma/emails/user_email.ex')
-rw-r--r-- | lib/pleroma/emails/user_email.ex | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/pleroma/emails/user_email.ex b/lib/pleroma/emails/user_email.ex index 1d8c72ae9..831e5464f 100644 --- a/lib/pleroma/emails/user_email.ex +++ b/lib/pleroma/emails/user_email.ex @@ -93,6 +93,19 @@ defmodule Pleroma.Emails.UserEmail do |> html_body(html_body) end + def approval_pending_email(user) do + html_body = """ + <h3>Awaiting Approval</h3> + <p>Your account at #{instance_name()} is being reviewed by staff. You will receive another email once your account is approved.</p> + """ + + new() + |> to(recipient(user)) + |> from(sender()) + |> subject("Your account is awaiting approval") + |> html_body(html_body) + end + @doc """ Email used in digest email notifications Includes Mentions and New Followers data |