Table of contents

Send a test email via Notify

To send a test email using the dev VM 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

Your mail box should now have received the email.

This page was last reviewed . It needs to be reviewed again by the page owner #govuk-2ndline.