Skip to content

Commit

Permalink
Use MailHelper#case_reference for Volunteer form
Browse files Browse the repository at this point in the history
Replace with the generic abstraction.

Requires mysociety/alaveteli#7967.
  • Loading branch information
garethrees authored and gbp committed Oct 26, 2023
1 parent b8c3939 commit 6d5078c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/volunteer_contact_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ module MailerMethods
def volunteer_message(contact, logged_in_user)
@contact = contact
# Setup a case reference so we can find this in the mailbox
@contact_caseref = "VAPP/#{Time.now.strftime('%Y%m%d')}-#{SecureRandom.base36(4).upcase}"
@contact_caseref = case_reference('VAPP')
@logged_in_user = logged_in_user

# From is an address we control so that strict DMARC senders don't get
Expand Down

0 comments on commit 6d5078c

Please sign in to comment.