Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

退会完了メールのBCCにinfo@lokka.jpを追加する #7377

Merged
merged 2 commits into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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