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
- Go to your Railway Project.
- Select the service that will send emails.
- Click on the Variables tab.
- Add the following variable:
- Name:
RELOOP_API_KEY - Value:
rl_your_api_key
- Name:
- If using standard SMTP connections, also configure:
- Name:
SMTP_HOST→smtp.reloop.dev - Name:
SMTP_PORT→587 - Name:
SMTP_USER→reloop - Name:
SMTP_PASS→rl_your_api_key
- Name:
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?