Email Templates

Better Auth Email Templates

Custom-designed authentication emails for Better Auth. Preview, customize, and export production-ready HTML with JavaScript placeholders aligned with Better Auth callback data.

Using Better Auth email templates

How do I customize and copy a template?

Choose a template above, open its live preview, and select your brand color. When it is ready, choose Copy Better Auth HTML or download the HTML file.

How do I use the HTML with Better Auth?

Better Auth provides callbacks for sending authentication emails. See the Better Auth email documentation to configure the appropriate callback. To use custom HTML, pass the copied template as the HTML body through your email provider; the exact setup depends on the provider you use.

Which placeholders should I keep?

Keep ${url}, ${otp}, ${email}, ${newEmail}, ${inviteLink}, ${inviterName}, and ${organizationName} unchanged. They are plain JavaScript template-literal placeholders, so define matching variables from your callback’s arguments, for example const email = user.email. If you build the HTML without template literals, swap them out with .replace() instead.