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
kenfodder committed Oct 8, 2024
1 parent 1a48dbf commit d7b6a76
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
@@ -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)
@@ -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:
)

0 comments on commit d7b6a76

Please sign in to comment.