whitehall: Email delivery
Emails sent from Whitehall's integration and staging environments are not delivered to end users.
Instead, they're intercepted and re-routed to a Google Group (shared mailbox) so they can be accessed for debugging purposes. The intended recipient is prepended to the email body so it's easy to see who it would've been delivered to.
Send a test email from the Rails console
Running this in production will send an email to the specified recipient. Use integration or staging if you want the email to be intercepted.
To send a test email, open a Rails console and run:
ApplicationMailer.new.mail( subject: "Test email", to: "email@example.com", body: "This is a test email", template_id: ENV.fetch("GOVUK_NOTIFY_TEMPLATE_ID", "fake-test-template-id") ).deliver