Railway enables you to focus on building product instead of managing infrastructure, automatically scaling to support your needs as you grow.

Prerequisites

To get the most out of this guide, you’ll need to:

1. Install

We’ve created a Resend template using the Resend Node.js SDK as an introduction to using Resend on Railway. To get started, you deploy the template to Railway. Deploy on Railway Deploy button highlighted on Railway

2. Add your API key

Add an API key from Resend and click Deploy. Template modal with API key field highlighted

3. Send your first email

Once your deployment finishes, click the deploy URL to open the app and send your first email. Deployment link highlighted While this example uses the Resend Node.js SDK, you can add Resend using any of our Official SDKs that Railway supports.
Keep in mind that as a basic project, this template sends an email with your account each time someone visits your deployment URL, so share the link with discretion.
You can also set up the project locally and make changes to the projectusing the Railway CLI.

4. Try it yourself

Railway Template

See the full source code.