---
title: "Deploy AgentiSend Next.js contact form"
description: "Next.js contact form that sends email via AgentiSend"
category: "Starters"
url: https://railway.com/deploy/agentisend-nextjs-contact-form
---

# Deploy AgentiSend Next.js contact form

Next.js contact form that sends email via AgentiSend

**[Deploy AgentiSend Next.js contact form on Railway](https://railway.com/template/agentisend-nextjs-contact-form)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/agentisend-nextjs-contact-form/manifest.json

- **Creator:** fortuneflick's Projects
- **Category:** Starters

## Template content

### nextjs-starter

- **Source:** agentisend/nextjs-starter
- **Public domain:** Yes

## Documentation

# Deploy and Host AgentiSend Next.js contact form on Railway

A Next.js App Router contact form that sends email through AgentiSend from a Server Action. AgentiSend is a Resend alternative: an email API for apps, with per-key budgets and a kill switch for AI agents.

## About Hosting AgentiSend Next.js contact form

Deploy the starter from GitHub, set AGENTISEND_API_KEY (a key with sending_access from https://console.agentisend.com/api-keys), MAIL_FROM (an address on a domain you have verified in AgentiSend) and CONTACT_TO (where messages go). Railway builds and serves the app on a public domain.

## Common Use Cases

- Website contact form
- Starter for transactional email in Next.js
- Testing AgentiSend sending

## Dependencies for AgentiSend Next.js contact form Hosting

- An AgentiSend account and API key
- A verified sending domain

## Why Deploy AgentiSend Next.js contact form on Railway?


Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying AgentiSend Next.js contact form on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


## Similar templates

- [Openfront Gym](https://railway.com/deploy/openfront-gym) — Opensource Mindbody alternative based on Next.js and Keystone.js
- [open-excalidraw](https://railway.com/deploy/open-excalidraw) — Self-hostable collaborative drawing built on Excalidraw
- [Next.js + Prisma + PostgreSQL Starter](https://railway.com/deploy/nextjs-prisma-postgres) — Deploy a Next.js app with Prisma ORM and PostgreSQL in one click.

Open this page in a browser: https://railway.com/deploy/agentisend-nextjs-contact-form
