Skip to content

Commit

Permalink
Merge pull request #7377 from fjordllc/feature/add-bcc-to-retire-email
Browse files Browse the repository at this point in the history
退会完了メールのBCCにinfo@lokka.jpを追加する
  • Loading branch information
komagata authored Feb 15, 2024
2 parents 9fb9572 + a7c63ad commit 9c0bfed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/mailers/user_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions test/mailers/user_mailer_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9c0bfed

Please sign in to comment.