-
Notifications
You must be signed in to change notification settings - Fork 4
GOV.UK Notify
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:
- When a booking request has been acknowledged Code extract
- When a booking request has been accepted Code extract
- When a booking request has been rejected Code extract
- When a booking request has been cancelled Code extract
- When sending a one off message Code extract
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
[email protected]
Other information may also be found in the PVB Public application wiki