Skip to main content
Table of contents

Development VM

Send a test email via Notify

To send a test email using the dev VM or govuk-docker you will need to follow these steps:

  1. Sign in/create a Notify account via Notify
  2. Add a new service
  3. Click on ‘Templates’ and create a new template with subject ((subject)) and message ((body))
  4. Add the test email address to the whitelist by clicking on 'API integration’ then 'Whitelist’ if the test email is different from your Notify account email
  5. Then click on 'API keys’ and create an API key
  6. Select the Key 'Team and whitelist’
  7. Run the rake task in email-alert-api using the generated key, template ID and test email
$ bundle exec rake deliver:to_test_email[$TEST_EMAIL] GOVUK_NOTIFY_API_KEY=$KEY GOVUK_NOTIFY_TEMPLATE_ID=$ID

Prefix the command with govuk-docker run if you are using govuk-docker.

Your mail box should now have received the email.

This page was last reviewed on 2 September 2019. It needs to be reviewed again on 2 March 2020 by the page owner #govuk-2ndline .
This page was set to be reviewed before 2 March 2020 by the page owner #govuk-2ndline. This might mean the content is out of date.