Skip to content

Commit

Permalink
CAPT-1779 Update Reminder email
Browse files Browse the repository at this point in the history
* Remove unused personalisation fields
* Update reply-to-id
  • Loading branch information
kenfodder committed Oct 4, 2024
1 parent e188462 commit b485412
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions app/mailers/reminder_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,9 @@ def reminder_set(reminder)
def reminder(reminder)
@reminder = reminder
support_email_address = translate("additional_payments.support_email_address")
service_start_page_url = Journeys::AdditionalPaymentsForTeaching.start_page_url

personalisation = {
first_name: extract_first_name(@reminder.full_name),
support_email_address: support_email_address,
itt_academic_year: @reminder.itt_academic_year,
service_start_page_url: service_start_page_url
support_email_address: support_email_address
}

send_mail(REMINDER_APPLICATION_WINDOW_OPEN_NOTIFY_TEMPLATE_ID, personalisation)
Expand All @@ -58,7 +55,7 @@ def send_mail(template_id, personalisation)
template_mail(
template_id,
to: @reminder.email_address,
reply_to_id: Policies::EarlyCareerPayments.notify_reply_to_id,
reply_to_id: GENERIC_NOTIFY_REPLY_TO_ID,
subject: @subject,
personalisation:
)
Expand Down

0 comments on commit b485412

Please sign in to comment.