Railway Integration

Configure services hosted on Railway to send emails using Reloop.

Railway simplifies hosting backends, databases, and cron jobs. Configure your Railway services to send emails via Reloop with environment variables.


Step 1: Set Environment Variables in Railway

  1. Go to your Railway Project.
  2. Select the service that will send emails.
  3. Click on the Variables tab.
  4. Add the following variable:
    • Name: RELOOP_API_KEY
    • Value: rl_your_api_key
  5. If using standard SMTP connections, also configure:
    • Name: SMTP_HOSTsmtp.reloop.dev
    • Name: SMTP_PORT587
    • Name: SMTP_USERreloop
    • Name: SMTP_PASSrl_your_api_key

Railway will automatically redeploy your service to apply the variables.


Step 2: Code Integration

Retrieve the environment variables in your server code:

const apiKey = process.env.RELOOP_API_KEY;

Was this page helpful?

Edit this page