
- send Managed Better Auth emails, such as verification and password reset codes
- sync Managed Better Auth users to AutoSend contacts
- send transactional emails and events from Neon Functions
- store AutoSend email events in Postgres
Set Up AutoSend
Add and verify a sending domain in AutoSend. You send every email on this page from an address on that domain.Send Managed Better Auth Emails
Choose one of two options.Custom SMTP
The simplest option. Managed Better Auth sends its default emails from your address through AutoSend SMTP.
Webhooks
Full control. Handle the
send.otp and send.magic_link events and send each email with an AutoSend template.send.otp event has an otp_type and a send.magic_link event has a link_type, each sign-in, email-verification, or forget-password, so you can map each one to its own AutoSend template. You can reuse the templates from the Better Auth guide.
While a webhook subscribes to
send.otp or send.magic_link, Neon sends those emails to the webhook instead of through SMTP.Sync Managed Better Auth Users to AutoSend Contacts
Managed Better Auth sends auser.created webhook event after it creates a user. Your handler can:
- Call Upsert Contact with the user’s email and the Managed Better Auth user ID as
userId. - Send a
signup_completedevent that starts an onboarding automation.
Send Emails with Neon Functions
Send transactional emails from AutoSend templates, and send events that start automations, from a Neon Function.Send emails with Neon Functions
Add the Send email with AutoSend template with
neon functions new autosend-email.Store Email Events in Neon
Point an AutoSend webhook at a Neon Function that stores delivery, bounce, spam, and unsubscribe events in Postgres.Store AutoSend webhook events in Neon
Verify each webhook, store it without duplicates, and test on a branch.
Running Better Auth in your own app instead? See our Better Auth guide.