Skip to content

Commit

Permalink
fix: from address on game-related e-mails
Browse files Browse the repository at this point in the history
Ensure that the domain of the `from` address in e-mails sent by GMs in relation to games is always `bathlarp.co.uk`.
  • Loading branch information
dantarian authored Jul 6, 2024
1 parent 4ec0a48 commit a15a950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/gm_contacts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def new

def create
@email = ContactForm.new(email_params)
@email.from_user = current_user.email
@email.from_user = current_user.name + " <[email protected]>"
@email.to_user = @game.gamesmasters.collect(&:email).join(", ")
@email.subject = "[BathLARP] " + @email.subject

Expand Down

0 comments on commit a15a950

Please sign in to comment.