Skip to content
Simon Nebesnuick edited this page Apr 2, 2024 · 1 revision

Due to the COVID-19 pandemic the prison visits application was turned off for around 2 years, and over that time MoJ stopped making payments to the previous emailing application. In general most government services should be using GOV.UK Notify to send notifications to their users.

As part of spinning up the existing application we had to migrate the emailing capabilities to GOV.UK Notify, in order to align with the standard way to send notifications for a government service.

Here is the documentation for using GOV.UK Notify for a ruby application.

I created a new service called gov_notify_emailer.rb, which deals with the sending of notifications, as well as the formatting of the notification itself. (There is a branch called refactor_mailer which refactors out the email formatting logic into a presenter).

We send an email notification to a user on 5 different events:

Note: I kept the existing references to the old mailer, as some elements are tightly coupled to the existing mailer. In addition this system will soon be replaced with a new booking service, so this system just needs to exist and operate in a low maintenance mode.

To access the GOV.UK Notify templates and settings visit the GOV.UK Notify site and select the service Book a prison visit, if you need access to the service please contact either paul.solecki@digital.justice.gov.uk