Getting started with Midflight

Welcome to Midflight's integration guide. By following the steps below, you'll be ready to send your emails with Midflight in no time. If you use Ruby on Rails check the Rails integration guide.

1. Before we start

Make sure you have your unique BCC address provided by Midflight. You can find it in the onboarding page of your project or in the settings page.

2. Add us to your BCC

Integrating Midflight with your Rails app is straightforward. Just include your unique Midflight BCC address in the BCC field of your outgoing emails and add a couple of headers:

X-Midflight-Template: password_recovery
X-Midflight-Locale: en

Detailed explanation:

X-Midflight-Template: Set this to a unique identifier for each mail template.

X-Midflight-Locale: This should be set to the locale of the email, allowing for proper localization tracking within Midflight.

3. Test your integration

After setting up the code, send a test email to verify that Midflight is capturing it. You should see the email appear on your Midflight dashboard.


If your emails aren't appearing in Midflight:

  • Double-check your BCC address.
  • Make sure you're setting the headers correctly in every email.
  • Review your environment settings to ensure emails are being sent.

For further assistance, reach out to us at

© 2024 Midflight. All rights reserved