Skip to content

Commit

Permalink
Merge pull request #3273 from DFE-Digital/CAPT-1779-reminder-email
Browse files Browse the repository at this point in the history
CAPT-1779 Update Reminder email
  • Loading branch information
kenfodder authored Oct 8, 2024
2 parents 1a48dbf + d7b6a76 commit f684a8b
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 f684a8b

Please sign in to comment.