emails: send welcome mail on signup.

This commit is contained in:
evazion
2020-03-14 19:18:28 -05:00
parent d860fab7f5
commit 0ef9d6e417
5 changed files with 34 additions and 0 deletions

View File

@@ -16,4 +16,9 @@ class UserMailer < ApplicationMailer
@user = user
mail to: @user.email_with_name, subject: "Confirm your email address"
end
def welcome_user(user)
@user = user
mail to: @user.email_with_name, subject: "Welcome to #{Danbooru.config.app_name}! Confirm your email address"
end
end