-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emails not sent #319
Comments
Thanks @itacasoft for the report. On localhost, there are no welcome emails being sent instead, the login url is logged to the console papermark/pages/api/auth/[...nextauth].ts Lines 51 to 63 in a438ccc
|
Hi @mfts , thank you for your reply. |
On localhost, if emails are sent, all emails go to a resend sandbox ([email protected]), you can find these emails in resend.com/dashboard If you want to change that behaviour you can change this line to exclude the I'm sorry this was not documented properly. Thanks for bringing it up and helps making it easier for the next person 🙏 Line 33 in 77699f3
|
Hi again @mfts , resend.com/dashboard returns 404. As you can see, only my test after having created the API Key is present. |
Hey @itacasoft I refactored the sendEmail function that will return better error messages. As an aside, emails are not sent in localhost for signup/signins. |
@itacasoft do you still experience the issue on the latest version? |
Hi all,
environment:
I successfully managed to install, run and open the web application with command "npm run dev".
But when I try to register on page http://localhost:3000/login, apparently it works, but actually no email is sent.
I registered on Resend with a free plan and set the RESEND_API_KEY value in the .env environment with the API Key copied from Resend web site, but I do not receive any email.
Tries:
Below my application log:
C:\usr\Projects\papermark>npm run dev
▲ Next.js 14.1.0
· missingSuspenseWithCSRBailout
✓ Ready in 4.3s
○ Compiling /middleware ...
✓ Compiled /middleware in 514ms (171 modules)
○ Compiling / ...
✓ Compiled /login in 19.7s (1107 modules)
○ Compiling /api/auth/[...nextauth] ...
✓ Compiled /api/auth/[...nextauth] in 1442ms (1459 modules)
[Login URL] http://localhost:3000/api/auth/callback/email?callbackUrl=http%3A%2F%2Flocalhost%3A3000%2Flogin&token=e6c2e33a4ba84b6adeea95cc19f6dcaa352ab8462e6532c216bdfbd4120a188d&email=itacasoft%40gmail.com
Any help very appreciated, thanks.
The text was updated successfully, but these errors were encountered: