Skip to main content

Local Emails with MailDev

If you're interested in receiving emails locally you can use MailDev to intercept emails and display them in a local inbox.

important

MailDev is handy to verify that emails look as expected. However, functional tests that rely on email require the inbox service and will fail if MailDev is on.

  1. Install the MailDev CLI globally:

    npm i -g maildev
  2. Assuming you have FxA running locally you'll need to stop the inbox service:

    yarn pm2 stop inbox
  3. Start MailDev on port 9999. You may need to start it with sudo permissions:

    sudo maildev -s 9999
  4. All emails will now be sent to the local inbox, which you can access at http://localhost:1080

MailDev inbox preview