Ben Borgers / Posts /

How to send NextAuth.js emails with Amazon SES

April 23, 2021 by @benborgers

NextAuth.js wants you to use an SMTP connection string when using their "Email" authentication provider.

It took me a while to figure out how to get an SMTP connection string for Amazon Simple Email Service, but once I did I wrote this quick guide: How to send email through Amazon SES with SMTP.

Follow that guide to set up NextAuth.js like this:

providers: [
        server: 'smtp://',
        from: '' // A domain you've set up in Amazon SES' console

A quick favor: was anything I wrote incorrect or misspelled, or do you still have questions? Please use this form to let me know or ask for help!