diff --git a/app/mailers/user_mailer.rb b/app/mailers/user_mailer.rb index d4aa529aec1..528ca0bd7c3 100644 --- a/app/mailers/user_mailer.rb +++ b/app/mailers/user_mailer.rb @@ -14,7 +14,7 @@ def welcome(user) def retire(user) @user = user - mail to: user.email, subject: '[FBC] 退会処理が完了しました' + mail to: user.email, bcc: 'info@lokka.jp', subject: '[FBC] 退会処理が完了しました' end def auto_retire(user) diff --git a/test/mailers/user_mailer_test.rb b/test/mailers/user_mailer_test.rb index 53828861b36..1a8ad60635a 100644 --- a/test/mailers/user_mailer_test.rb +++ b/test/mailers/user_mailer_test.rb @@ -21,6 +21,7 @@ class UserMailerTest < ActionMailer::TestCase assert_not ActionMailer::Base.deliveries.empty? assert_equal ['noreply@bootcamp.fjord.jp'], email.from assert_equal ['kimura@fjord.jp'], email.to + assert_equal ['info@lokka.jp'], email.bcc assert_equal '[FBC] 退会処理が完了しました', email.subject assert_match(/ご利用いただきありがとうございました/, email.body.to_s) assert_match("#{user.name}様の今後のご活躍を心からお祈り申し上げます。", email.body.to_s)