emails: use separate addresses for different types of emails.

This commit is contained in:
evazion
2022-09-29 00:39:31 -05:00
parent b94cb7d824
commit b625f95981
2 changed files with 41 additions and 6 deletions

View File

@@ -15,7 +15,7 @@
# and add DANBOORU_ to the front. More examples:
#
# DANBOORU_CANONICAL_URL=https://booru.example.com
# DANBOORU_CONTACT_EMAIL=admin@borou.example.com
# DANBOORU_CONTACT_EMAIL=admin@booru.example.com
# DANBOORU_DISCORD_SERVER_URL=https://discord.gg/yourbooru
#
# Settings from environment variables will override those from the config file.
@@ -86,11 +86,26 @@ module Danbooru
"http://#{Danbooru.config.hostname}"
end
# Contact email address of the admin.
# The email address of the admin user. This email will be publicly displayed on the contact page.
def contact_email
"webmaster@#{Danbooru.config.hostname}"
end
# The email address to use for Dmail notifications.
def notification_email
"notifications@#{Danbooru.config.hostname}"
end
# The email address to use for password reset and email verification emails.
def account_security_email
"security@#{Danbooru.config.hostname}"
end
# The email address to use for new user signup emails.
def welcome_user_email
"welcome@#{Danbooru.config.hostname}"
end
# System actions, such as sending automated dmails, will be performed with
# this account. This account must have Moderator privileges.
#