Auth.js magic links through the Notix relay.
Auth.js sends its email sign-in links through the Nodemailer provider, and Nodemailer speaks SMTP. Give the provider the Notix relay as its server and every magic link goes out from your own domain, tracked like any other send.
Send an email from Auth.js.
import NextAuth from "next-auth";
import Nodemailer from "next-auth/providers/nodemailer";
export const { handlers, auth, signIn, signOut } = NextAuth({
// adapter: your database adapter; email sign-in stores tokens there.
providers: [
Nodemailer({
server: {
host: "smtp.usenotix.dev",
port: 465,
secure: true,
auth: { user: "notix", pass: process.env.NOTIX_API_KEY },
},
from: "Acme <signin@acme.com>",
}),
],
});
The from address must be on a domain you have verified in Notix. Step by step: the SMTP quickstart and the longer guide to sending email from Next.js.
One API key, kept on the server.
Create an API key on the API keys page of the Notix console and store it as NOTIX_API_KEY in .env.local beside AUTH_SECRET. Never give it the NEXT_PUBLIC_ prefix: variables with that prefix are built into the browser bundle, and anyone who opens the site can read them.
A Send only key is enough for code that only sends: if it leaks, it cannot read your contacts or delete a domain.
NOTIX_API_KEY=notix_xxxxxxxxxxxx
NOTIX_WEBHOOK_SECRET=whsec_xxxxxxxxxxxx
Questions, answered.
What are the SMTP settings?
Does the relay treat magic links differently from the API?
Why is my send refused with a from-address error?
Keep reading.
Send email from Next.js
A route handler, a server action and a contact form on the App Router, with a React Email template.
DocsSMTP
Send through the Notix SMTP relay from any app or framework that speaks SMTP.
IntegrationsIntegrations
Notix inside the frameworks, platforms and AI coding tools you already use, from Next.js and Laravel to Supabase, Vercel and Cursor.
ProductEmail API
One JSON API for transactional and marketing email: send, batch, schedule, webhooks, typed SDKs.
NotixPricing
A free plan with no card, and Pro at $15 a month for 50,000 emails. Only sent volume is metered.
Send your first email in five minutes.
Verify a domain, copy an API key, make one call. The free plan does not ask for a card.